When the user clicks the pages Search button, the search parameter is sent to the server. The server processes the request, builds a filtered DataSet based on the parameter, populates a DataGrid, and sends the page back to the browser.
Before adding the DataGrid, you must define a DataSet that finds and stores all the records that meet the search criteria.
If the advanced dialog box appears, click the Simple button to open the simple dialog box.
Leave the DataSet dialog box open for now. Youll use it next to retrieve the search parameters sent to the server and create a DataSet filter to exclude records that dont meet the parameters.
For example, if the value sent by the search page is a city name, select the column in your table that contains city names.
This choice states that the user wants only those records in which the selected table column is exactly the same as the one specified on the search page. You can use a less restrictive option such as "begins with" or "contains."
The parameter is sent to the server by a form using the POST method.
You can get the name by clicking the form control on the form to select it, and checking the controls ID in the Property inspector.
The test value simulates the value that would otherwise have been returned from the search page. Click OK to close the Dataset.
Dreamweaver inserts code in your page that, when run on the server, checks each record in the database table. If the specified field in a record meets the filtering condition, the record is included in a DataSet. The code in effect builds a recordset containing only the search results.
The next step in creating the search page is to display the search results in a DataGrid. See Displaying the results in a DataGrid.