$Web Form Action Len: Difference between revisions
m (1 revision) |
m (1 revision) |
(No difference)
|
Revision as of 20:54, 6 June 2012
<section begin="desc" />Return action URL length<section end="desc" />
$Web_Form_Action.Len returns the length of the relative URL of the current request.
Syntax
<section begin="syntax" /> %RC = $Web_Form_Action.Len <section end="syntax" />
$Web_Form_Name takes no arguments and returns a number. $Web_Form_Action.Len is most useful in conjunction with $Web_Form_Action./var> when there is a possibility that the current URL is longer than 255 bytes. In such a case, $Web_Form_Action./var> 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 [[$Web_Form_Action.Len]] and $Web_Form_Done.