$Web_Name

From m204wiki
Revision as of 21:38, 21 February 2011 by Admin (talk | contribs) (1 revision)
Jump to navigation Jump to search

<section begin="desc" />Name of isindex or form field<section end="desc" />


$Web_Name retrieves the name of an isindex or form field in a request.

Syntax

<section begin="syntax" /> %RC = $Web_Name( field_number ) <section end="syntax" />


$Web_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 isindex or form field for which the name is being requested. This parameter must be specified.

$Web_Name is useful when writing generic server applications, when the server does not know what field name exists at a particular location in an isindex or form request.

* Get the number of isindex or form fields. %X = $Web_Num * Load the field names into an array. FOR %Y FROM 1 TO %X %FIELD(%Y) = $Web_Name(%Y) END FOR


$Web_Name first counts isindex fields and then form fields. $Web_Name can be used instead of $Web_IsIndex_Name and $Web_Form_Name to make it easy to switch between using "method=GET" and "method=POST"<form> tags and simply to save typing.

See also: