HTTPGetFormValue - method of object Pm


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


HTTPGetFormValue(vKey As Variant, sBody As String) As String
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 the method returns an empty string.

The value vKey specifies 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 functional for Web panels in JavaScript language (and therefore it is not working in Web panels).
VBScriptSelect and copy to clipboard

Dim sBody, s
sBody = "Boiler1=123&Boiler2=256"  'let's have a text value in the sBody variable then:
s = Pm.HTTPGetFormValue("Boiler1", sBody)  's contains "123"
PROMOTIC 8.3.30 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
- 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