In a form I have an an array of checkboxes with each one reading something like..
<input type="checkbox" name="states[]" value="PA">
My problem is I want to do form validation but not sure how to check if each checkbox has been checked or not. Does anyone know of either a way to use javascript to validate an array of checkboxes declared as above or of another way to pass the arry into PHP other than declaring ...
name="states[]"
Thanks for your help
Chris
<input type="checkbox" name="states[]" value="PA">
My problem is I want to do form validation but not sure how to check if each checkbox has been checked or not. Does anyone know of either a way to use javascript to validate an array of checkboxes declared as above or of another way to pass the arry into PHP other than declaring ...
name="states[]"
Thanks for your help
Chris