$Web_Form_Action_Len

From m204wiki
Revision as of 21:33, 21 February 2011 by 198.242.244.47 (talk) (Created page with "{{DISPLAYTITLE:$Web_Form_Action_Len}} <span class="pageSubtitle"><section begin="desc" />Return action URL length<section end="desc" /></span> $Web_Form_Action_Len returns the...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<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 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 $Web_Form_Action_Len and $Web_Form_Done.