In a while cicle I build my checkboxes:
Code: Select all
<td>
<input type="checkbox" name="selection'.$i.'['.$index1++.']" value="'.$i.'-1-1-'.$row_partite[7].'">
</td>
<td>
<input type="checkbox" name="selection'.$i.'['.$index1++.']" value="'.$i.'-x-1-'.$row_partite[8].'">
</td>
<td>
<input type="checkbox" name="selection'.$i.'['.$index1++.']" value="'.$i.'-2-1-'.$row_partite[9].'">
</td>
[] with the name of "selection1[1]" - [] "selection1[2]" - [] "selection1[3]"
[] with the name of "selection2[1]" - [] "selection2[2]" - [] "selection2[3]"
[] with the name of "selection3[1]" - [] "selection3[2]" - [] "selection3[3]"
....
on the other page, when I send the form, I must have an array for each "selection n" and I must take also an array that has all the "selection n" alwais relative to the "selection n" that I send.
So this procedure must be dynamic for the memorization of the checkboxes, somebody can resolve this problem?
Obviously I know how to have a normal array of multicheckboxes, but transpose all of this dynamically is giving me a headshot!
HELP