Adding Check Boxes


Check boxes are one of the most commonly used form fields, and you're likely to want several on your forms. They're particularly useful when you want specific responses from your site visitors , and you don't want them to have to enter data into text fields (and possibly misspell their entry).

To add a check box:

1.
Choose where in your form you want your check box to appear, and click the check box button on the Insert Bar. A new check box will appear on your page ( Figure 10.10 ).

Figure 10.10. Check boxes are an easy way to get exact information from your site's visitors.


2.
If the check box hasn't been automatically selected, select it, and you'll see the options you can change for your new field in the Property Inspector ( Figure 10.11 ):

  • Checkbox name : This is the name of the field, and will be used by any JavaScript validation as well as any server-side CGI.

  • Checked value: This is the value that's passed to the server (and JavaScript client-side code) when the user has checked the check box.

  • Initial state: This refers to the appearance of the check box when the page is first loadedis the box checked or unchecked?

Figure 10.11. Set the name and value of the check box in the Property Inspector, along with the checked status of the box when the page is loaded.





Macromedia Dreamweaver 8 for Windows & Macintosh Visual QuickStart Guide
Macromedia Dreamweaver 8 for Windows & Macintosh
ISBN: 0321350278
EAN: 2147483647
Year: 2005
Pages: 239

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net