Hi!
I have a problem with forms and checkboxes. What have I done wrong here? (I'm a beginner!!!)
<p><input type="checkbox" name="<?php echo($row["gamekod"])?>" value="ON"></p>
After the form“has been sent...(The name of the button is bekrafta.
if($bekrafta){
$bokkoll=mysql_query("SELECT * FROM Game");
while ($erow=mysql_fetch_array($bokkoll)){
if(${$erow["gamekod"])}=="ON"){
$boksatt= "UPDATE Game SET bokad=1";
if (!$boksatt){
echo("<P>Det gick inte att boka matchen</P>");
}
else {
mysql_query($boksatt);
}
}//if(boka...
}//if(while($erow...
}//if(bekrafta...