[FormVariables]Form Variable Tags[/FormVariables]
To display a list of all the form variables available, put a [FormVariables] context into a template.
Example (normally you would put the following text into a .tpl file on your server and use a web browser to link to it):
The [FormVariables] context has optional parameters that are placed within the beginning tag in order to modify the list of form variables produced.
Example:
Listing the variables with a given name is useful for getting the results of a multiple select list or multiple checkboxes with the same name.
The following parameters are optional to the [FormVariables] context:
| Parameter | Description |
|---|---|
|
Name |
the name of the field to list |
|
Exact |
T(rue) or F(alse) whether to exactly match the name of the parameter or match any name that contains the "name" value. (Default value is true) |
|
form |
(Optional) Use form=include to retrieve the list of form variables from the [include file=xxx&var1=yyy&var2=zzz] tag that included this template. |
The following tags are available inside a [FormVariables] context:
| Tag | Description |
|---|---|
|
[Name] |
the name of the field |
|
[Value] |
the value associated with the field |
|
[Index] |
A number from 1 to the number of fields, indicating this field's index in the list |