
799
Working with Live Data
22
Posting responses with Live Data settings
Although the query string is handy for changing one or two simple variables, the more complex the
variables, the less convenient it becomes. Dreamweaver offers another route to controlling Live Data
variables: Live Data settings. The Live Data Settings dialog box, shown in Figure 22-7, offers several
important advantages over the query string:
The name/value pairs are easier to enter and maintain in a straightforward two-column
■■
table.
URL encoding is handled automatically by Dreamweaver; with query strings. You have to
■■
enter any necessary URL encoding manually.
Variables may be sent to the application by either the
■■
Get or Post method. The query
string uses only the
Get method.
Additional initializing code may be applied to the page. This feature enables you to test dif-
■■
ferent session or environmental variables in the page, as if the server had set the values.
Variable settings may be optionally stored. If you select this option, Dreamweaver uses its
■■
Design Notes facility to maintain the variables.
FIGURE 22-7
You can use the Live Data Settings dialog box to simulate forms using either the
GET or POST method.
To establish variables using the Live Data Settings feature, follow these steps:
1. Choose View ➪ Live Data Settings, or enter Live Data view and select Settings from the
Live Data toolbar. The Live ...