$Web Form Name: Difference between revisions
(Created page with "{{DISPLAYTITLE:$Web_Form_Name}} <span class="pageSubtitle"><section begin="desc" />Name of form field<section end="desc" /></span> $Web_Form_Name retrieves the name of a field...") |
m (1 revision) |
(No difference)
|
Revision as of 21:38, 21 February 2011
<section begin="desc" />Name of form field<section end="desc" />
$Web_Form_Name retrieves the name of a field on a form.
Syntax
<section begin="syntax" /> %RC = $Web_Form_Name( field_number ) <section end="syntax" />
$Web_Form_Name takes a single argument and returns a string or null if the number references a non-existing field.
The only parameter is the number of the form field for which the name is being requested. This parameter must be specified.
$Web_Form_Name is useful when writing generic server applications, when the server does not know what field name exists at a particular location in a POST request.
* Get the number of form fields. %X = $Web_Num_Form * Load the field names into an array. FOR %Y FROM 1 TO %X %FIELD(%Y) = $Web_Form_Name(%Y) END FOR
See also: