Decoding the string delivered from the Web browser (e.g. after filling in the form). The string has the standard form of:
s = Pm.HTTPGetFormValue(vKey, sBody)
|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|
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 value vKey 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.
'let's have a text value in the sBody variable:
sBody = "Boiler1=123&Boiler2=256"
s = Pm.HTTPGetFormValue("Boiler1", sBody)
's contains "123"