Hi there folks!
I need to utilize a js "check/uncheck all" deal in my form and the only code examples I can find utilize the checkbox name, so the code checks and unchecks all the checkboxes with name=foo.
Unfortunately, I don't know how to handle checkboxes with the same name in my php. I've always done it via
<input type='checkbox' name='checkbox1' value='' />
<input type='checkbox' name='checkbox2' value='' />
then on the processing end of things:
if(ISSET($_POST['checkbox1'])){
// Do the first checkbox thing.
}
if(ISSET($_POST['checkbox2'])){
// Do the second checkbox thing.
}
I don't know how to handle two checkboxes with the same name on the processing end and I can't find a js example that will check across different names.
Could someone help me figure out how this is handled?
Thanks for your time!