Adobe 38040334 - Dreamweaver CS3 User Manual page 540

Pc
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

Each menu choice corresponds to a hard-coded value that is submitted as a form parameter to the server. The List
Values dialog box in the following example matches each list item to a value (Add, Update, or Delete):
After a form parameter is created, Dreamweaver can retrieve the value and use it in a web application. After defining
the form parameter in Dreamweaver, you can insert its value within a page.
See also
"Creating forms" on page 600
"Adding dynamic content to pages" on page 564
"Accessing data stored in a database" on page 531
URL parameters
URL parameters let you pass user-supplied information from the browser to the server. When a server receives a
request and parameters are appended to the URL of the request, the server gives the requested page access to the
parameters before serving that page to the browser.
A URL parameter is a name-value pair appended to a URL. The parameter begins with a question mark (?) and takes
the form
. If more than one URL parameter exists, each parameter is separated by an ampersand (&).
name=value
The following example shows a URL parameter with two name-value pairs:
http://server/path/document?name1=value1&name2=value2
In this example workflow, the application is a web-based storefront. Because the developers of the site want to reach
the widest possible audience, the site is designed to support foreign currencies. When users log in to the site, they
can select the currency in which to view the prices of the available items.
The browser requests the report.cfm page from the server. The request includes the URL parameter
1
Currency="euro". The Currency="euro" variable specifies that all monetary amounts retrieved be displayed as the
European Union euro.
The server temporarily stores the URL parameter in memory.
2
3
The report.cfm page uses the parameter to retrieve the cost of items in euros. These monetary amounts can either
be stored in a database table of different currencies, or converted from a single currency associated with each item
(any currency supported by the application).
September 4, 2007
DREAMWEAVER CS3
533
User Guide

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents