Forum Moderators: coopster
<html>
<form method = "post" name = "form">
<input type ="checkbox" name = "chk1" /> Checkbox 1 <br>
<input type ="checkbox" name = "chk2" /> Checkbox 2 <br>
<input type ="checkbox" name = "chk3" /> Checkbox 3 <br>
<input type ="submit" name = "submitName" /><br>
</form>
<?php
//if they clicked the submit button
if(isset($_POST['submitName'])){
//if they checked box 1
if(isset($_POST['chk1'])){
echo("You checked box 1<br>");
}//if isset chk1
//if they checked box 2
if(isset($_POST['chk2'])){
echo("You checked box 2<br>");
}//if isset chk2
//if they checked box 3
if(isset($_POST['chk3'])){
echo("You checked box 3<br>");
}//if isset chk3
}//if isset
?>
</html>