iwats asp
Start
 
News
 
Course Notes
Intro
What is ASP?
Uses
Requirements
Basic syntax
Response
Request
IF and CASE
Includes
Sessions
Common Errors
Using Your Code
 
Course Test
 
Resources
Requests

A request is when a client's browser submits some sort of query to the server. This request can take many forms. It can also be used to request information from the server. Here are some below:

Request Command Description
request.form("formfield") The request is being generated by a HTML form. The formfield is the name of one of the fields and can be manipulated like any variable.
request.querystring("variable") You've probably used this request many times and not known. The most common is the URL for your TIE Corps profile. In the case of the URL of http://www.emperorshammer.net/rosters/personnel.asp?record=693, record would take the place of variable and the value would be 693.
request.cookie Used for getting the value of cookies.
request.servervariables("variablename") These are various variables that are combinations of the client and the server and can change from system to system. Common ones include script_name (for the name of the script), http_referer (name of the previous page) and http_user_agent (the idenfication string of the browser).

You can also use the more generalised format of request("field"), but it's best to specifically say where the request is coming from.