Open greypants opened 8 years ago
Remember to put brackets at the end to mark it as an array, take a look:
<input type="checkbox" name="nested[colors][]" value="red" />
<input type="checkbox" name="nested[colors][]" value="green" checked />
<input type="checkbox" name="nested[colors][]" value="blue" checked />
Values serialize into arrays just fine when they're not nested, but when they are, only the last value is used and serializes as a string:
Expected Output:
Actual Output:
I can work around it if I explicitly add
[]
to the names, but it seems like it should work without that. Thoughts?