<class home>  <forms>   <back   next>

Check Boxes

Check boxes allow a user to make a selection from options. Many times they are used for yes or no answers.


ex.

running:   swimming:   hiking:  skating:

do you like chocolate:
yes
no


To make a check box: Dreamweaver

1. Put your cursor where you want it in the document window.

2. Select Insert>form object>check box from the main menu.
Or click on the form button in the object panel: form section:

3. In the Properties panel:
-give it a name, now the name should be the same for all checkboxes in a set.
-give every checkbox item a unique value in the "Checked Value" field.
-choose an initial state of checked or unchecked (checked will have it selected initially)



In HTML

Typing it in.

ex.

running:   swimming:   hiking:  skating:
To get the above put this into the <body> section of your html:

<form name="form3" method="post" action="" enctype="multipart/form-data">
running:
<input type="checkbox" name="activities" value="running">
&nbsp; swimming:
<input type="checkbox" name="activities" value="swimming">
&nbsp; hiking:
<input type="checkbox" name="activities" value="hiking">
&nbsp;skating:
<input type="checkbox" name="activities" value="skating" checked>

</form>