I have multiple checkboxes
$result7 = $db->sql_query("select id from ".$prefix."_huntlist ORDER BY id");
while(list($id) = $db->sql_fetchrow($result7)) {
echo "$id <input type=\"checkbox\" name=\"cid[]\" value=\"$id\"></td></tr>";
}
I do see the checkboxes but when I check more than 1 box only the last one I check gets put into my database.
foreach($POST["cid"] AS $key => $value){
sql_query("insert into ".$prefix."huntteampts values ('$cid')", $dbi);
}
what am I doing wrong.