O'Reilly logo

Adobe ColdFusion 8 Web Application Construction Kit, Volume 1: Getting Started by Charlie Arehart, Raymond Camden, Ben Forta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required