When a user submits a form with the GET method or appends parameters to a URL request, you can use the QueryString collection to read the submitted information.
The values you read from the request are the parameters that appear after the question mark ( ? ).
Figure 10.2 An HTTP request message containing submitted information
NoteThe QueryString collection is a parsed version of the QUERY_STRING variable of the ServerVariables collection. The QueryString collection enables you to retrieve the QUERY_STRING parameters by name .
Example
This example loops through all of the values in an HTTP request:<%For Each Item In Request.QueryString 'Display the Item Next %>If more than one value is submitted with the same value namesuch as a multiselect list box on a formyou can use the index of the QueryString collection variable to access the individual values.
Example
This example shows how to access the first and second value of a variable named "sport" in the QueryString collection:Request.QueryString("sport")(0) Request.QueryString("sport")(1)