When the form on the page is sent to the page in the get mode, please [/url] for data (if the data contains unsafe characters, then, the browser converts the string to a hexadecimal character before transmitting it. For example, if a space is converted to % 20), the web server puts the request data into an environment variable named QUERY_STRING, the querystring method extracts the corresponding value from the environment variable and restores the value to a hexadecimal character (for example, % 20 is restored to a space ).
For example, 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: http://www.xxxxx.com/xxxx.asp? Username = nnnnn & Password = Mmmmm
Use request. querystring ("username") to obtain the string "nnnnn"
Request. querystring ("password") to get "Mmmmm "!
Use the following method to obtain all request data: For each xkey in request. querystring
Response. Write ("<p>" & xkey & "=" & request. querystring (xkey) & "</P> ")
Next
Use the following method to list all environment variables:
For each xkey in request. servervariables
Response. Write ("<p>" & xkey & "=" & request. servervariables (xkey) & "</P> ")
Nexttop