Hi there! Array-based checkbox fields can be a bit of a struggle sometimes because of most browsers' default behavior. If a box isn't checked, the browser won't even send that index in the next request.
Anyway, there are two common strategies you'll see:
- Giving the checkbox fields each a unique key like
<input type="checkbox" name="dogs[0]" />(in this case0would be something unique to each one like a dog ID or something - Giving checkbox fields a value like
<input type="checkbox" name="dogs[]" value="0" /> (again,0` would be your dog ID or whatever here)