quote:
The checkboxes for the edit all have the same name, and they
all have the same name for the delete.
Do you mean that the edit and delete checkboxes share the
same name?
For example:
edit: <cfinput type="checkbox" name="box_1"
value="edit">
delete: <cfinput type="checkbox" name="box_1"
value="delete">
If that is the case, you will have to validate against the
value of box_1, not the name itself.. if the value is equal to
"edit,delete" for box_1, then obviously both options have been
selected. Checkboxes return their value as a list.
<cfif isDefined('form.box_1') AND form.box_1 EQ
'edit,delete'>
logic here.
</cfif>
Ideally, you should be using radio buttons in this situation
since a user shouldn't be able to select both edit and delete to
begin with.