$Web Form Name: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
(Automatically generated page update)
Line 1: Line 1:
{{DISPLAYTITLE:$Web_Form_Name}}
{{DISPLAYTITLE:$Web_Form_Name}}
<span class="pageSubtitle"><section begin="desc" />Name of form field<section end="desc" /></span>
<span class="pageSubtitle">Name of form field</span>


<var>$Web_Form_Name</var> retrieves the name of a field on a form.
<var>$Web_Form_Name</var> retrieves the name of a field on a form.


==Syntax==
==Syntax==
<p class="syntax"><section begin="syntax" /><span class="term">%rc</span> = $Web_Form_Name( field_number )
<p class="syntax"><span class="term">%rc</span> = $Web_Form_Name( field_number )
<section end="syntax" /></p>
</p>





Revision as of 15:51, 9 April 2013

Name of form field

$Web_Form_Name retrieves the name of a field on a form.

Syntax

%rc = $Web_Form_Name( field_number )


$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