Define url parameters, Define form parameters – Adobe Dreamweaver CC 2015 User Manual
Page 579
572
Dynamic sites, pages and web forms
Last updated 6/3/2015
4
Define the variable 'varJob' by clicking the Plus (+) button in the Variables area and entering the following values in
the Name, Default Value, and Run-Time Value columns: varJob, CLERK, Request("job").
5
Click OK to add the recordset to the Bindings panel.
Define URL parameters
URL parameters store retrieved information input by users. Before you begin, make sure you pass a form or URL
parameter to the server. After you define the URL variable, you can use its value in the currently selected page.
1
In the Document window, open the page that will use the variable.
2
Select Windows > Bindings to display the Bindings panel.
3
In the Bindings panel, click the Plus (+) button and select one of the following from the pop-up menu:
4
In the URL Variable dialog box, enter the name of the URL variable in the box, and click OK.
The URL variable name is normally the name of the HTML form field or object used to obtain its value.
5
The URL variable appears in the Bindings panel.
Define form parameters
Form parameters store retrieved information that is included in the HTTP request for a web page. If you create a form
that uses the POST method, the data submitted by the form is passed to the server. Before you begin, make sure you
pass a form parameter to the server. After you define the form parameter as a content source, you can use its value in
your page.
1
In the Document window, open the page that will use the variable.
2
Select Windows > Bindings to display the Bindings panel.
3
In the Bindings panel, click the Plus (+) button and select one of the following from the pop-up menu:
4
In the Form Variable dialog box, enter the name of the form variable, and click OK. The form parameter name is
normally the name of the HTML form field or object used to obtain its value.
The form parameter appears in the Bindings panel.
Document Types
Menu item in Bindings panel for URL variable
ASP
Request Variable > Request.QueryString
ColdFusion
URL Variable
PHP
URL Variable
Document Types
Menu item in Bindings panel for form variable
ASP
Request Variable > Request.Form
ColdFusion
Form Variable
PHP
Form Variable