September 2007
Intermediate to advanced
600 pages
20h 21m
English
Other input types you will frequently use are check boxes and radio buttons:
Check boxes are used to select options that have one of two states: on or off, yes or no, and true or false. To ask a visitor whether they want to be added to a mailing list, for example, you would create a check box field. If the user selects the box, their name is added to the mailing list; if the user doesn’t select the box, their name is not added.
Radio buttons are used to select one of at least two mutually exclusive options. You can implement a field prompting for payment type with options such as Cash, Check, Credit card, or P.O.
The code example in Listing 12.3 creates a form that uses both option buttons and check box ...
Read now
Unlock full access