5.5 CGIObj

The CGIObj contains a name-value pair that represents either the form variables or the environment variables.

5.5.1 Name property

Returns the name of the CGI variable.

Syntax

 object.Name
 

Type

String.

Attributes

Read-only.

Example

This example retrieving the name and the value of the form fields.

 Set formvars=doc.formvars
 For each formvar in formvars
 		    Print "Name:"&formvar.name&"nbsp;nbsp"
     &"Value:"&formvar.value
 Next
 

5.5.2 Value property

Returns the value associated with the CGI variable.

Syntax

 object.Value
 

Type

String.

Attributes

Read-only.

Remarks

By default, value property is called for CGIObj object.

Example

This example retrieving the name and the value of the form fields.

 Set formvars=doc.formvars
 For each formvar in formvars
 		    Print "Name:"&formvar.name&"nbsp;nbsp"
     &"Value:"&formvar.value
 Next