Ok, so I have this for loop here and I am trying to get this checkbox thing to print up. The reason why is because I want people to be able to click on the checkbox to say whether or not a certain team won... it is a tournament type setup. Well I keep getting a parse error for that input line. I do not know why. Also I do have the <form> part included above the for statement.
Also I am wondering what kind of data I can pass to the $chekbox array. Right now I should be passing 1, right?
for ($count = 1; $count < ($totalarray + 1)/2; $count++)
{
$currentteam1 = current($teamarray);
print $currentteam1 . " " . "<input type="checkbox" name="$chekbox[]" value="1"><BR>";
print "<B>VS.</B><BR>";
next($teamarray);
$currentteam2 = current($teamarray);
print $currentteam2 . " " . "<input type="checkbox" name="$chekbox[]" value="1"><BR>";
next($teamarray);
print "<BR><BR>";
}
Thanks for your help!
Adam