Processing Check Boxes and Radio Buttons
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 ...
Get Adobe ColdFusion 8 Web Application Construction Kit, Volume 1: Getting Started now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.