When the FORM on the page sends to the page in GET, please [/url] to find the data (if the data contains unsafe characters, the browser first converts it into hexadecimal characters and then transmits it, such as a space being converted to %20), WEBSERVER puts the requested data into an environment variable called QUERY_STRING. The QueryString method is to take out the corresponding value from this environment variable and restore the characters converted to hexadecimal (such as %20 being restored to space).
If there is a text box with name username and a text box with name password on the form, when the form is submitted, such a URL string will be generated: http://www.xxxxx.com/xxxx.asp?username=nnnnnn&password=mmmmmm
Using Request.QueryString("username") will get the string "nnnnn"
Request.QueryString("password") gets "mmmmm"!
All request data can be obtained using the following method: foreachxKeyinRequest.QueryString
response.write("<p>"&xkey&"="&Request.QueryString(xkey)&"</p>")
next
Use the following method to list all environment variables:
foreachxKeyinRequest.ServerVariables
response.write("<p>"&xkey&"="&Request.ServerVariables(xkey)&"</p>")
nextTop