Unveil ASP secrets (2)

Source: Internet
Author: User
Request object
    
Author: mi Xiansheng
    
The Request object is used to obtain the data sent from the client browser to the server, that is, to obtain information from visitors accessing your ASP. The Request object contains the Form set, QueryString set, Cookies set, ServerVariables set, and Clientcertificate set.
    
1. Form
The Form set retrieves the values of the table elements sent to the HTTP request body by using the POST method.
Syntax Request. Form (element) [(index) |. Count]
Parameters
Element specifies the name of the table element to be retrieved from the set.
An optional index parameter. You can use this parameter to access one of multiple values of a parameter. It can be any integer between 1 and Request. Form (parameter). Count.
Number of elements in the Count set
The Form set is indexed by the parameter names in the request body. The value of Request. Form (element) is an array of all element values in the Request body. Call Request. Form (element). Count to determine the number of values in the parameter. If the parameter is not associated with multiple values, the count is 1. If no parameter is found, the count is 0. To reference a single value in a table element with multiple values, you must specify the index value. The index parameter can be any number from 1 to Request. Form (element). Count. If you reference one of multiple table parameters without specifying the index value, the returned data is a string separated by commas.
    
2. QueryString
The QueryString collection retrieves the value of the variable in the HTTP query string. The HTTP query string is composed of question marks (?) Specify the value after. You can also generate a query string by sending a table or entering a query in the address box of your browser.
Syntax
Request. QueryString (variable) [(index) |. Count]
The QueryString collection allows you to retrieve the QUERY_STRING variable by name. The value of Request. QueryString (parameter) is an array of the values of all parameters in QUERY_STRING. You can call Request. QueryString (parameter). Count to determine the number of parameters.

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.