FormVariables Context [FormVariables]Form Variable Tags[/FormVariables]
Lists all the form variables and parameters passed to the current page.

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 following are all the form variables available to this page:<br>
[FormVariables]
[index],[name],[value]<br>
[/FormVariables]

The [FormVariables] context has optional parameters placed within the beginning tag in order to modify the list of form variables produced.

Example:

The following are the values of all the form variables with the name "text":<br>
[FormVariables name=text&exact=T]
[index],[value]<br>
[/FormVariables]

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
(Optional) The name of the field to list.
 Exact
(Optional) 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 in 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 total number of fields, indicating this field's index placement in the list.

User Contributed Notes
FormVariablesContext  

GJK - gary at garykrockover dot com 
01/21/2004 at 10:43:55
Here's a generic snippet that will take anything that's *not* a file and create a text variable of the same name as the ones passed in the form (code goes all on one line).


[formvariables][hideif [url][name][/url]^filename=%22][text][middle startAfter=name="&endBefore="][name][/middle]=[value][/text][/hideif][/formvariables]

(Code supplied by Rob Marquardt)

Copyright © 2008 WebDNA Software Corporation, Inc.