Usage of the cyclic value request. querystring

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.