You are here Articles List / ASP Overview Page 3

ASP Overview - Request Object


Request Object
The Request Object is used to get information submitted from an html form or on the querystring, get information stored in a cookie, and to get environment variables.

An example use of the Request Object is to request a value that was submitted from an html form. The name of the variable comes from the html input device.

<INPUT TYPE=text NAME=myvar>

Now we will get the value of the html form variable "myvar" (assuming that the form has been submitted).

sFormvar = Request.Form("myvar")

In the above code we set the value of formvar equal to the value of the form variable. We can then use the new variable (formvar) to do something (insert in to a database, print out a message, etc).

<< Prev Section - Response Object  |  Next Section - Application Object >>