Adobe 38040334 - Dreamweaver CS3 User Manual page 634

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

Advertisement

For example, if the value sent by the search page is a city name, select the column in your table that contains city
names.
2
From the pop-up menu beside the first menu, select the equal sign (it should be the default).
From the third pop-up menu, select Form Variable if the form on your search page uses the
3
Parameter if it uses the
method.
GET
The search page uses either a form variable or a URL parameter to pass information to the results page.
4
In the fourth box, enter the name of the form object that accepts the search parameter on the search page.
The name of the object doubles as the name of the form variable or URL parameter. You can get the name by
switching to the search page, clicking the form object on the form to select it, and checking the object's name in the
Property inspector.
For example, suppose you want to create a recordset that includes only adventure trips to a specific country. Assume
you have a column in the table called
method and contains a menu object called Location that displays a list of countries. The following example shows
how your Filter section should look:
(Optional) Click Test, enter a test value, and click OK to connect to the database and create an instance of the
5
recordset.
The test value simulates the value that would otherwise have been returned from the search page. Click OK to close
the test recordset.
If you're satisfied with the recordset, click OK.
6
A server-side script is inserted on your page that checks each record in the database table when it runs on the server.
If the specified field in a record meets the filtering condition, the record is included in a recordset. The script builds
a recordset that contains only the search results.
The next step is to display the recordset on the results page. For more information, see "Display the search results
(ColdFusion, ASP, JSP, PHP)" on page 628.
Build an advanced results page (ColdFusion, ASP, JSP, PHP)
If the search page submits more than one search parameter to the server, you must write a SQL query for the results
page and use the search parameters in SQL variables.
Note: If you have only one search condition, you can use the simple Recordset dialog box to define your recordset (see
"Build a basic results page (ColdFusion, ASP, JSP, PHP)" on page 625).
Open the results page in Dreamweaver, and then create a recordset by opening the Bindings panel (Window >
1
Bindings), clicking the Plus (+) button, and selecting Recordset from the pop-up menu.
2
Make sure the advanced Recordset dialog box appears.
The advanced dialog box has a text area to enter SQL statements. If the simple dialog box appears instead, switch to
the advanced dialog box by clicking the Advanced button.
Enter a name for the recordset, and select a connection.
3
The connection should be to a database containing data you want the user to search.
. Also assume the HTML form on your search page uses the
TRIPLOCATION
September 4, 2007
DREAMWEAVER CS3
627
User Guide
method, or URL
POST
GET

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents