Level 58
Yes, it is possible to design a form with checkboxes with the same name attribute but different values. Just make sure you use an array syntax for the name attribute, like this:
<input type="checkbox" name="tasks[]" value="task1">
<input type="checkbox" name="tasks[]" value="task2">
<input type="checkbox" name="tasks[]" value="task3">
And then you can just sit back and watch the magic happen!
1 like