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 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).
Example:
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 9.0.0 SCADA system documentation - MICROSYS, spol. s r.o.

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