$Web Name: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m (1 revision)
Line 27: Line 27:




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


See also:
See also:

Revision as of 22:00, 6 June 2012

<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: