$Web_Parm_Len
<section begin="desc" />Length of isindex or form field<section end="desc" />
$Web_Len retrieves the length of an isindex or form field in a request. $Web_Parm_Len is a somewhat more syntactically correct synonym for $Web_Len.
$Web_Len takes two arguments and returns a number, or it returns zero if the field does not exist.
Syntax
<section begin="syntax" />%rc = $Web_[Parm_]Len( fieldname, occurrence ) <section end="syntax" />
Syntax terms
fieldname | The name of the isindex or form field, returned by $Web_Name. Required argument if occurrence not specified, otherwise optional. |
---|---|
occurrence | The occurrence number of an isindex or form field, or the occurrence number of the isindex or form field matching fieldname, if fieldname is specified. Optional argument if fieldname is specified, otherwise it is required. |
Usage notes
- $Web_Len first looks for isindex fields matching the name, then for matching form fields.
- $Web_Len can be used instead of $Web_IsIndex_Len and $Web_Form_Len to make it easy to switch between using "method=GET" and "method=POST" <form> tags, as well as simply to save typing.