In order for php to generate an array from multiple checkboxes having the same name, does the name of the checkboxes have to have a "[]" after it? For example:
<input type='checkbox' name='RelatedCheck[]' value='".$CriteriaID."'")
(This line is part of an echo statement and the CriteriaID is an ID field from a database.)
The problem is that if I remove the "[]" it seems to break the array in PHP. For example:
<input type='checkbox' name='RelatedCheck' value='".$CriteriaID."'")
However, if I leave the "[]", it breaks the form validation I am trying to do with javascript on the submit. Javscript doesn't seem to like the "[]" after the name. If anyone has run into the issue or has any possible solutions for me let me know. Thanks in advance.
Jeremy Isaacs
Systems Programmer
PCS International