The REQUEST object can receive information from the client, obtain the information on the browser, including information passed by the URL parameter, the HTML form uses the POST or GET method parameters and cookie, and the like.
1. Read the parameter information of the URL
Transfer parameters in the URL, as follows:
http: //
If there are multiple parameters, you can use & connection
Read by request.queryString data collection
Example:
http://re.asp? name = jhong 'passes a parameter
Passing a parameter, the parameter name is: JHONG This parameter is: jhong
http://re.asp? name = jhong & pass = 123 'Pass two parameters
Pass two parameters, a parameter name is: Name value is: jhong
Another parameter name is: Pass value is: 123
How to get this parameter value?
Create a RE.ASP web page, enter this code between
body>:<%
Name = Request.QueryString ("name") 'Returns the value of the name to the Name variable
PASS = Request.QueryString ("pass") 'Returns the value of the pass to the Pass Variable
Response.write "Your name is:" & name & ", password is:" & pass
'Print Name and Pass values
%>