HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
The Form collection is used to retrieve the values of form elements from a formthat uses the POST method."
Parameter | Description |
---|---|
element | Required. The name of the form element from which the collection is to retrieve values |
index | Optional. Specifies one of multiple values for a parameter. From 1 to Request.Form(parameter).Count. |
Example 1
You can loop through all the values in a form request. If a user filled out a form by specifying two values - Blue and Green - for the color element, you could retrieve those values like this:
Output:
Example 2
Consider the following form:
The following request might be sent:
Now we can use the information from the form in a script:
Output:
If you do not specify any element to display, like this:
the output would look like this:
❮ Complete Request Object Reference