... well, not exactly. I used to have code like this:
<input type="checkbox" name="defender[]" id="def1" value="Cafu" />Cafu (AC Milan)<br />
So I could check various boxes, make an array called 'defender' and pass it to another page. Cool.
Except, I put a javascript validation on the form and it wouldn't work with the [] so I had to remove them:
<input type="checkbox" name="defender" id="def1" value="Cafu" />Cafu (AC Milan)<br />
That works fine for the validation, but now when I try to pass the values to the next page, only the last value in the 'array' appears.
How can I turn the values into an array without using [] in the name attribute of the checkbox?
If anyone can help I'll provide full code for you to look at.