Free Web Hosting, Free Hosting, Free ASP Hosting - 1ASPHost.com
    

    Domain Registration
    Free Hosting
    Web Hosting
    E-mail Accounts
    FAQs
    Contact Us

    Learn ASP
    Databases
    Articles
    Terms of Service
    Home

Getting the values of forms or the parameters can be done by calling the Request.Form function or the Request.QueryString function.  If the form uses the POST method, use the Request.Form.  If the form uses the GET method or the parameters were passed to a web page by a ? with a & separating the parameter names and values, then use the Request.QueryString.

Example:

This form, using the POST method, returns Username=John Doe and Password=pw then with the POST method:

UserName = Request.Form("Name")
Password = Request.Form("Password")

Same values but using the GET method, or someone used the URL http://www.something.com/login.asp?Name=John%20Doe&Password=pw:

UserName = Request.QueryString("Name")
Password = Request.QueryString("Password")

By: Matthew Holder