Operation Manual

543
USING DREAMWEAVER
Making pages dynamic
Last updated 3/28/2012
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.
More Help topics
About dynamic content sources” on page 529
About URL and form parameters” on page 530
Define server variables” on page 545
Define session variables
You can use session variables to store and display information maintained for the duration of a user’s visit (or session).
The server creates a different session object for each user and maintains it for a set period of time or until the object is
explicitly terminated.
Before defining session variables for a page, you must create them in the source code. After you create a session variable
in the web application’s source code, you can use Dreamweaver to retrieve its value and use it in a web page.
1 Create a session variable in the source code, and assign a value to it.
For example, this ColdFusion example instantiates a session called username, and assigns it the value Cornelius:
<CFSET session.username = Cornelius>
2 Select Window > Bindings to display the Bindings panel.
Document Types Menu item in Bindings panel for form variable
ASP Request Variable > Request.Form
ColdFusion Form Variable
PHP Form Variable