$Web Form Action Len: Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 5: Line 5:


==Syntax==
==Syntax==
<p class="syntax"><section begin="syntax" />%rc = $Web_Form_Action_Len
<p class="syntax"><section begin="syntax" /><span class="term">%rc</span> = $Web_Form_Action_Len
<section end="syntax" /></p>
<section end="syntax" /></p>



Revision as of 21:45, 17 October 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