When an HTML form contains either a list of check boxes with the same name or a multiple-selection list box (that is, where users can select multiple items from the list), the user's entries are made available as a comma-delimited list with the selected values. These lists can be very useful for a wide range of inputs.
Note: If the user does not select a check box or make a selection from a list box, no variable is created. The cfinsert
and cfupdate
tags do not work correctly if there are no values. To correct this problem, make the form fields required, use Dynamic SQL, or use cfparam
to establish a default value for the form field.