Page1:
$names[0] = 'Sm._Rod';$names[1] = 'Med._Rod';$names[2] = 'Lg._Rod';$names[3] = 'Ocean_Rod';
for($x=0;$x<=3;$x++)
{
echo "<input name=\"$names[$x]\" type=\"checkbox\" value=\"ON\">";
}
Page2:
$names[0] = 'Sm._Rod';$names[1] = 'Med._Rod';$names[2] = 'Lg._Rod';$names[3] = 'Ocean_Rod';
for($x=0;$x<=3;$x++)
{
if($_POST[$names[$x]]=='ON')
{
echo $names[$x];
}
}
The weird thing is, when I check all the boxes, ONLY the Ocean_Rod will work, the other 3 boxes never count as being checked. I looked in the html soruce code it produced and everything thing came out fine. I have done a million checkboxes before and have never had this problem. I have been trying stuff for hours and nothing works, its probably something I am blind to but what the heck? If anyone sees something thats wrong please let me know..
Thanks.