$name = $_POST['name'];
$email_body ='';
<?php
$aDoor = $_POST['formDoor'];
if(empty($aDoor))
{
$email_body = "You didn't select any buildings.";
}
else
{
$N = count($aDoor);
$email_body .= "You selected $N door(s): ";
for($i=0; $i < $N; $i++)
{
$email_body .= $aDoor[$i] . " ";
}
}
?>
0
solved Multiple Checkboxes