Easy Tutorial
❮ Met Addheader Prop Name Folder ❯

ASP Form Collection



The Form collection is used to retrieve the values of form elements from a form that uses the POST method.

Syntax

Parameter Description
element Required. The name of the form element from which the value is retrieved.
index Optional. Specifies one of multiple values for a parameter. Ranges from 1 to Request.Form(parameter).Count.

Examples

Example 1

You can iterate through all values in the form request. Suppose the user filled out the form by specifying two values for the color element - Blue and Green - you can retrieve these values as follows:

Output:

Example 2

Take a close look at this form:

Suppose the following request is sent:

Now, we can use the information from the form with a script:

Output:

If you do not specify the element to display:

Then the output would be:

❮ Met Addheader Prop Name Folder ❯