You do NOT need wheelchair access.
\n"); } if(empty($aDoor)) { echo("You didn't select any buildings.
\n"); } else { $N = count($aDoor); echo("You selected $N door(s): "); for($i=0; $i < $N; $i++) { echo($aDoor[$i] . " "); } echo("
"); } //Checking whether a particular check box is selected //See the IsChecked() function below if(IsChecked('formDoor','A')) { echo ' A is checked. '; } if(IsChecked('formDoor','B')) { echo ' B is checked. '; } //and so on } function IsChecked($chkname,$value) { if(!empty($_POST[$chkname])) { foreach($_POST[$chkname] as $chkval) { if($chkval == $value) { return true; } } } return false; } ?>