A search page on the web typically contains form fields in which the user enters search parameters. At minimum, your search page must have an HTML form with a Submit button.
An empty form is created on the page. You might need to enable Invisible Elements (View > Visual Aids > Invisible Elements) to see the forms boundaries, which are represented by thin red lines.
Form objects include text fields, menus, checkboxes, and radio buttons. You can add as many form objects as you want to help users refine their searches. However, keep in mind that the greater the number of search parameters on the search page, the more complex your SQL statement will be.
For more information on form objects, see Inserting HTML form objects.
Next, youll tell the form where to send the search parameters when the user clicks the Submit button.
<form>
tag in the tag selector at the bottom of the Document window, as shown:
GET
sends the form data by appending it to the URL as a query string. Because URLs are limited to 8192 characters, dont use the GET
method with long forms.POST
sends the form data in the body of a message.Default
uses the browsers default method (usually GET
).The search page is done. Next comes the results page. For more information, see Building the results page.