Just the Gist
About Forms Forms let you collect information supplied by visitors to your site. A form consists of two parts: what the user interacts with in the web browser, and an application or script that runs on your web server that handles submitted data. For a form to work correctly, a back-end application or script must be set up. Consult your system administrator or Internet service provider for details.
Inserting a Form Insert a form by choosing Insert > Form > Form. Use the settings in the Property Inspector to determine how your form interacts with the application or script running on your web server.
Inserting Form Fields Text fields allow users to type their own content directly on your form. To insert a text field, click the Text Field button in the Forms category of the Insert bar. You can set text fields as single-line fields, multiline fields, or password fields. Check boxes allow users to make multiple selections from a group of choices. To insert a check box, click the Checkbox button in the Forms category of the Insert bar. Radio buttons restrict users to only one selection in a group of choices. To set a group of radio buttons, click the Radio Group button in the Forms category of the Insert bar, or insert them individually using the Radio Button button, also on the Insert bar. Lists and pull-down menus work the same way; the only difference is their appearance. Lists appear as a scrolling series of options; pull-down menus appear as a drop-down list of options. To insert a list or pull-down menu, click the List/Pull-down button in the Forms category of the Insert bar. File fields allow users to attach files from their computers when they submit the form. For a file field to work on your page, the application or script running on your web server must be able to handle uploaded files. Reset and Submit buttons allow users to clear their forms or submit forms to your web server. You can also use Dreamweaver's behaviors to set many other commands. To insert a button, click Button in the Forms category of the Insert bar. Set the options for your forms fields in the Property Inspector.
Ensuring That Your Form Is Completed Correctly To ensure that your form is filled out as you intended, you can use Dreamweaver's Validate Form behavior. The behavior works only on text fields, as the other types of form objects don't allow users to add their own content. To add the Validate Form behavior, select the <form> tag on the Tag Selector; then choose Validate Form from the Behavior panel's Add Behavior menu.
|