• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 11. Forms > Creating Checkboxes

Creating Checkboxes

While radio buttons can accept only one answer per set, a visitor can check as many checkboxes in a set as they like. Like radio buttons, checkboxes are linked by the value of the NAME attribute.

To create checkboxes:

1.
If desired, type the introductory text (something like Select one or more of the following) for your checkboxes.

2.
Type < INPUT TYPE="checkbox". (Notice there is no space in the word checkbox.)

3.
TypeNAME="boxset", where boxset both identifies the data sent to the script and also links the checkboxes together.

4.
TypeVALUE="value" to define a value for each checkbox. The value will be sent to the server if the checkbox is checked (either by the visitor, or by you as described in step 5).

5.
TypeCHECKED to make the checkbox checked by default when the page is opened. You (or the visitor) may check as many checkboxes as desired.

6.
Type > to complete the checkbox.

7.
Type the text that identifies the checkbox to the user. This is often the same as the VALUE, but doesn't have to be.

8.
Repeat steps 2-7 for each checkbox in the set.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint