Difference between revisions of "$Web Form Name"

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m
Line 2: Line 2:
 
<span class="pageSubtitle"><section begin="desc" />Name of form field<section end="desc" /></span>
 
<span class="pageSubtitle"><section begin="desc" />Name of form field<section end="desc" /></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" /> %RC = $Web_Form_Name( field_number )
 
<p class="syntax"><section begin="syntax" /> %RC = $Web_Form_Name( field_number )
Line 15: Line 14:
  
 
<var>$Web_Form_Name</var> 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.
 
<var>$Web_Form_Name</var> 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.
<p class="code"> * Get the number of form fields.
+
<p class="code">&#42; Get the number of form fields.
 
   
 
   
%X = $Web_Num_Form
+
%x = $Web_Num_Form
 
   
 
   
* Load the field names into an array.
+
&#42; Load the field names into an array.
 
   
 
   
FOR %Y FROM 1 TO %X
+
For %y From 1 TO %x
%FIELD(%Y) = $Web_Form_Name(%Y)
+
%field(%y) = $Web_Form_Name(%y)
END FOR
+
End For
 
</p>
 
</p>
  
 
+
==See also==
See also:
 
 
<ul>
 
<ul>
 
+
<li><var>[[$Web_Form_Parm_Len]]</var>
<li>[[$Web_Form_Parm_Len]]  
+
<li><var>[[$Web_Form_Parm]]</var>
<li>[[$Web_Form_Parm]]  
+
<li><var>[[$Web_Num_Form]]</var>
<li>[[$Web_Num_Form]]
 
 
</ul>
 
</ul>
  
  
 
[[Category:Janus Web Server $functions|$Web_Form_Name]]
 
[[Category:Janus Web Server $functions|$Web_Form_Name]]

Revision as of 22:14, 6 June 2012

<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