Technical References - [formvariables]

Lists all the form variables and parameters passed to the current page.

numero = 249
interpreted = N
texte = [formvariables]Form Variable Tags[/formvariables] To display a list of all the form variables available, put a [formvariables] context into a template.

This context is extremely useful to debug a form

Example: The following are all the form variables available to this page:
[formvariables][index],[name],[value]
[/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":
[formvariables name=text&exact=T][index],[value]
[/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:
ParameterDescription
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:
TagDescription
 [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.
[break]From version 8.1, if the [formvariables] context sees the [break] tag while executing a loop, it will stop looping, once it finishes the current loop. Thus the [break] tag should only appear in a [showif] statement that is evaluated at the end (bottom) of the loop.
[formvariables]Form Variable Tags[/formvariables]

To display a list of all the form variables available, put a [formvariables] context into a template.

This context is extremely useful to debug a form


Example:
The following are all the form variables available to this page:

[formvariables]
[index],[name],[value]

[/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":

[formvariables name=text&exact=T]
[index],[value]

[/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:
ParameterDescription
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:
TagDescription
 [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.
[break]From version 8.1, if the [formvariables] context sees the [break] tag while executing a loop, it will stop looping, once it finishes the current loop. Thus the [break] tag should only appear in a [showif] statement that is evaluated at the end (bottom) of the loop.


DOWNLOAD WEBDNA NOW!

Top Articles:

WebDNA Modules

A list of the currently available modules...

F.A.Q

A compilation of some user's questions...

WebDNA reference

...

AWS Raw WebDNA LAMP-Plus WebServer

Amazon Web Services (AWS) README for Machine Image ID...

Tips and Tricks

A list of user-submitted tips ...

Technical Change History

This Technical Change History provides a reverse chronological list of WebDNA changes...

Related Readings:

[authenticate]

WebDNA provides a few options for password protecting your pages...

[middle]

Extracts middle portion of the text between any two strings...

[elapsedtime]

...

[DOS]

Executes the DOS batch file commands contained in the context and displays the results...

[username]

Using [password] and [username] is an easy was to show the browser login dialog box...

[table]

[table] allows you to quickly create a temporary 'in line' database that is local to the template and not part of the global database cache...