How to Use Multiple Checkbox Controls in Dreamweaver


show more Working with multiple checkbox controls provides you with in-depth training on Business. Taught by David Gassner as part of the Dreamweaver with PHP and MySQL show less
please wait ...

Working with multiple checkbox controls

One of the most complex skills you need to learn to work with data entry forms is how to deal with multiple choice questions in a form that are represented by multiple check box controls. A single check box control is dealt with as a yes or no question. If the check box is selected, that means the user has selected the option, and if it's deselected, that means no. But with multiple check box selections to a single question, one very common way of dealing with it is to give all the check boxes the same name, and then to handle the results on the server using a little bit of PHP code.

I'll demonstrate how to do this with a version of my data entry form called join4.php, in the explorers folder. The first step is to make sure that all of your check boxes are named the same, and that they have a little bit of extra notation at the end of the name that turns them from a simple variable into something called an array. An array is an ordered collection of data. For example, this check ...

Working with multiple checkbox controls
Video duration: 8m 5s 4h 55m Intermediate Updated Jun 12, 2012

Viewers:

Working with multiple checkbox controls provides you with in-depth training on Business. Taught by David Gassner as part of the Dreamweaver with PHP and MySQL

Subjects:
Business Developer Web
Software:
Dreamweaver
Author:
please wait ...