The Request| object Request object can receive information from the client and obtain relevant information on the browser, including information passed through the URL parameters, parameters such as post or Get methods in an HTML form, and cookies.
1, read the URL of the parameter information
Pass parameters in the URL, as follows:
http://< URL >/< web page file >?< parameter name >=< value >
If you have more than one parameter, you can use the & connection
Read by Request.QueryString data collection
Example:
Http://re.asp?name=jhong ' pass a parameter
Passed a parameter named: Jhong the value of this parameter is: Jhong
Http://re.asp?name=jhong&pass=123 ' Pass two parameters
Pass two parameters, one parameter name is: Name value is: Jhong
Another parameter name is: Pass value is: 123
How do I get the value of this parameter?
Create a re.asp page and enter the code between the <body></body> of the page:
<%
Name=request.querystring ("name") ' Returns the value of name to the name variable
Pass=request.querystring ("pass") ' returns the value of pass to the passed variable
Response.Write "Your name is:" &name& ", the password is:" &pass
' Print the value of name and pass
%>