$Web Form Action Len: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
mNo edit summary
Line 2: Line 2:
<span class="pageSubtitle"><section begin="desc" />Return action URL length<section end="desc" /></span>
<span class="pageSubtitle"><section begin="desc" />Return action URL length<section end="desc" /></span>


<var>$Web_Form_Action_Len</var> takes no arguments and returns the length of the relative URL of the current request.


<var>$Web_Form_Action</var>.Len returns the length of the relative URL of the current request.
==Syntax==
==Syntax==
<p class="syntax"><section begin="syntax" /> %RC = <var>$Web_Form_Action</var>.Len
<p class="syntax"><section begin="syntax" />%rc = $Web_Form_Action_Len
<section end="syntax" /></p>
<section end="syntax" /></p>


 
==Usage notes==
<var>$Web_Form_Name</var> takes no arguments and returns a number. <var>$Web_Form_Action</var>.Len is most useful in conjunction with <var><var>$Web_Form_Action</var>./var> when there is a possibility that the current URL is longer than 255 bytes. In such a case, <var><var>$Web_Form_Action</var>./var> can be used in a loop in conjunction with <var>$Web_Form_Action</var>.Len as demonstrated here:
<var>$Web_Form_Action_Len</var> is most useful in conjunction with <var>[[$Web_Form_Action]]</var> when there is a possibility that the current URL is longer than 255 bytes. In such a case, <var>$Web_Form_Action</var> can be used in a loop in conjunction with <var>$Web_Form_Action_Len</var>, as demonstrated here:
<p class="code"> PRINT '<form method="POST" action="' ...
<p class="code">PRINT '<form method="POST" action="' ...
FOR %I FROM 1 TO <var>$Web_Form_Action</var>.Len BY 255
FOR %I FROM 1 TO $Web_Form_Action_Len BY 255
PRINT <var>$Web_Form_Action</var>.%I) ...
PRINT $Web_Form_Action(%I) ...
END FOR
END FOR
PRINT '">'
PRINT '">'
</p>
</p>


==See also==
<ul>
<li><var>[[$Web_Form_Done]]</var>
</ul>


See also [[<var>$Web_Form_Action</var>.Len]] and [[$Web_Form_Done]].
[[Category:Janus Web Server $functions|$Web_Form_Action_Len]]
 
[[Category:Janus Web Server $functions|<var>$Web_Form_Action</var>.Len]]

Revision as of 22:09, 6 June 2012

<section begin="desc" />Return action URL length<section end="desc" />

$Web_Form_Action_Len takes no arguments and returns the length of the relative URL of the current request.

Syntax

<section begin="syntax" />%rc = $Web_Form_Action_Len <section end="syntax" />

Usage notes

$Web_Form_Action_Len is most useful in conjunction with $Web_Form_Action when there is a possibility that the current URL is longer than 255 bytes. In such a case, $Web_Form_Action can be used in a loop in conjunction with $Web_Form_Action_Len, as demonstrated here:

PRINT '<form method="POST" action="' ... FOR %I FROM 1 TO $Web_Form_Action_Len BY 255 PRINT $Web_Form_Action(%I) ... END FOR PRINT '">'

See also