Promotic
WikipediaLinkedInYoutubeTwitterFacebook

HTTPGetFormValue - method of object Pm

Description:

Decoding the string delivered from the Web browser (e.g. after filling in the form). The string has the standard form of:

"Value1=Value1&Value2=Value2&..."

Syntax:
HTTPGetFormValue(vKey As Variant, sBody As String) As String
Calling:
s = Pm.HTTPGetFormValue(vKey, sBody)
Parameters:
vKey(Variant) name or index of the HTTP message parameter (e.g. the value of the "description" edit box in the HTML form) whose value has to be obtained
sBody(String) body of the HTTP message
Note:

The method returns a text value of the item determined by the vKey parameter. If the specified item is not in the sBody, then an empty string is returned.

The vKey value defines the HTML item of the form. For example for the HTML item:

<INPUT type="text" name="T1" value="2.0"/>

There is vKey="T1".

The method should facilitate the work with HTML forms as it removes manual decoding of the received string.

 
This method is not so far functional for Web Panels.
Example:
let's have a text value in the sBody variable:
sBody = "Boiler1=123&Boiler2=256"
Then:
s = Pm.HTTPGetFormValue("Boiler1", sBody)
s contains "123"
Navigation:
 
- Pm
 
- Abs
- Cos
- E
- Exp
- HTTPGetFormValue
 
 
- LN2
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice