zzz wrote:Thi this seems like a correctr code, but ti doesn't quite work. Can anyone see what the problem is?
well, for one thing, you are referring to your $key as an array within the loop. i'm not exactly sure what you're trying to do with this line:
if ($array[i] == $key)
however, you should be able to echo your input boxes like this:
foreach ($array as $key => $value) {
echo "<input type=checkbox name='' />$value";
}
if you can explain what you're checking for with the line above, we can help you implement that check as well