$Web Form Action Len: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
No edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:<var>$Web_Form_Action</var>.Len}} | {{DISPLAYTITLE:<var>$Web_Form_Action</var>.Len}} | ||
<span class="pageSubtitle" | <span class="pageSubtitle">Return action URL length</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_Len</var> takes no arguments and returns the length of the relative URL of the current request. | ||
==Syntax== | ==Syntax== | ||
<p class="syntax" | <p class="syntax"><span class="term">%rc</span> = $Web_Form_Action_Len | ||
</p> | |||
==Usage notes== | ==Usage notes== | ||
Line 16: | Line 16: | ||
PRINT '">' | PRINT '">' | ||
</p> | </p> | ||
<p class="note"><b>Note:</b> The maximum Janus Web Server URL length is 1,024 bytes. </p> | |||
==See also== | ==See also== |
Latest revision as of 22:01, 11 September 2019
Return action URL length
$Web_Form_Action_Len takes no arguments and returns the length of the relative URL of the current request.
Syntax
%rc = $Web_Form_Action_Len
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 '">'
Note: The maximum Janus Web Server URL length is 1,024 bytes.