View Single Post
Old 07-08-2004, 03:39 AM   #7 (permalink)
abbiz
Registered User
 
Join Date: Jul 2004
Posts: 1
abbiz is on a distinguished road
I didn't got the code working properly. I have added a line, so now it works fine. /Albin

<?$shows=$_REQUEST['shows'];?>
<form method=post action=<?=$_SERVER['PHP_SELF']?>>
<input type=checkbox name=shows[] value="show 0"> show 0 <br>
<input type=checkbox name=shows[] value="show 1"> show 1 <br>
<input type=checkbox name=shows[] value="show 2"> show 2 <br>
<input type=submit name=submit value=submit>
</form>

<?


foreach($shows as $each){
echo $each . " is checked. <br>";
}

?>
abbiz is offline   Reply With Quote