$Web Form Action Len: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(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...")
 
No edit summary
 
(12 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:$Web_Form_Action_Len}}
{{DISPLAYTITLE:<var>$Web_Form_Action</var>.Len}}
<span class="pageSubtitle"><section begin="desc" />Return action URL length<section end="desc" /></span>
<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.


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


==Usage notes==
<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="' ...
FOR %I FROM 1 TO $Web_Form_Action_Len BY 255
PRINT $Web_Form_Action(%I) ...
END FOR
PRINT '">'
</p>


$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:
<p class="note"><b>Note:</b> The maximum Janus Web Server URL length is 1,024 bytes. </p>
<p class="code"> PRINT '<form method="POST" action="' ...
FOR %I FROM 1 TO $Web_Form_Action_Len BY 255
PRINT $Web_Form_Action(%I) ...
END FOR
PRINT '">'
</p>




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


[[Category:Janus Web Server $functions|$Web_Form_Action_Len]]
[[Category:Janus Web Server $functions|$Web_Form_Action_Len]]

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.


See also