Operation Manual
544
USING DREAMWEAVER
Making pages dynamic
Last updated 3/28/2012
3 Click the Plus (+) button, and select Session Variable from the pop-up menu.
4 Enter the name of the variable you defined in the application’s source code, and click OK.
More Help topics
“Using forms to collect information from users” on page 623
“How session variables work” on page 531
“Collecting, storing, and retrieving information in session variables” on page 531
Define application variables for ASP and ColdFusion
In ASP and ColdFusion, you can use application variables to store and display information that is maintained for the
lifetime of the application and persists from user to user. After you define the application variable, you can use its value
in a page.
Note: There are no application variable objects in PHP.
1 Open a dynamic document type in the Document window.
2 Select Window > Bindings to display the Bindings panel.
3 Click the Plus (+) button, and select Application Variable from the pop-up menu.
4 Enter the name of the variable as defined in the application’s source code, and click OK.
The application variable appears in the Bindings panel under the Application icon.
More Help topics
“About adding dynamic content” on page 549
“Define server variables” on page 545
Use a variable as a data source for a ColdFusion recordset
When you define a recordset for a page in the Bindings panel, Dreamweaver enters the name of the ColdFusion data
source in the
cfquery tag on the page. For more flexibility, you can store a data source name in a variable and use the
variable in the
cfquery tag. Dreamweaver provides a visual method of specifying such a variable in your recordsets.
1 Make sure a ColdFusion page is active in the Document window.
2 In the Bindings panel, click the Plus (+) button and select Data Source Name Variable from the pop-up menu.
The Data Source Name Variable dialog box appears.