4D v16.3WEB GET VARIABLES |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16.3
WEB GET VARIABLES
WEB GET VARIABLES
The WEB GET VARIABLES command fills the text arrays nameArray and valueArray with the variable names and values contained in the Web form “submitted” (i.e. sent to the Web server). This command gets the value for all the variables which can be included in HTML pages: text area, button, check box, radio button, pop up menu, choice list... Note: Regarding check boxes, the variable name and value are returned only if the check box has been actually checked. This command is valid regardless of the type of URL or form (POST or GET method) sent to the Web server. This command can be called, if necessary, in the On Web Connection Database Method or any other 4D method resulting from a form submission. Each form contains named data entry area (text area, buttons, checkboxes).
A form contains two fields, vName and vCity with “ROBERT” and “DALLAS” values. The action associated to the form is “/4DACTION/WEBFORM”.
The WEBFORM method can be as follows: ARRAY TEXT($anames;0) The result will be: $anames{1}="vNAME" The vNAME variable contains ROBERT and the vCITY variable contains DALLAS.
See also
Binding 4D objects with HTML objects
|
PROPERTIES
Product: 4D HISTORY
Modified: 4D 2004 ARTICLE USAGE
4D Language Reference ( 4D v16) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||