Defining ASP server variables

Defining ASP server variables

You can define the following ASP server variables as sources of dynamic content: Request.Cookie, Request.QueryString, Request.Form, Request.ServerVariables, and Request.ClientCertificates.

To define a server variable for an ASP page:

  1. Open the Bindings panel (Window > Bindings).
  2. Click the Plus (+) button and select Request Variable from the pop-up menu.

    The Request Variable dialog box is displayed. Select one of the request collections from the Type pop-up menu.

    For example, if you want to access the information in the Request.ServerVariables collection, select Server Variables. If you want to access the information in the Request.Form collection, select Form.

    For more information on these variables, see Setting the Request Variable dialog box options (ASP).

  3. Specify the variable in the collection that you want to access.

    For example, if you want to access the information in the Request.ServerVariables("HTTP_USER_AGENT") variable, enter the argument HTTP_USER_AGENT. If you want to access the information in the Request.Form("lastname") variable, enter the argument lastname.

  4. Click OK.

    The server variable appears in the Bindings panel.



Getting Started with Dreamweaver
Dreamweaver Basics
Working with Dreamweaver Sites
Laying Out Pages
Adding Content to Pages
Working with Page Code
Preparing to Build Dynamic Sites
Making Pages Dynamic
Defining Sources of Dynamic Content
Developing Applications Rapidly