If I have a form with two checkboxes that have have the same array as name attribute
name="1_1[]"
and neither of those checkboxes is ticked, is there any way I can know they were present in the form? These fields are not being sent through the $_POST array if they are unchecked.
I'm asking this cause these name values are being generated dynamically, I don't always know what they are and I have to validate them (make sure at least one of the two is checked).
Do I have to start using hidden fields to send the name attribute values through, or is there a better way?