<!--CATERING REG FORM
//Name
//location
//email
//phone
//number in party
//date of reservation
//time of reservation
//Genre of food
//vegetarian, bbq, asian, greek, mexican
//comments allergy info
//budget, 1000-5000,5000-10000,etc-->
<?php
if ($_POST['submit']== 'Get Quote'){
foreach ($_POST as $key=>$value){
	if ($key == 'foodchoices' || $key == 'submit') continue;
	$content .= $key.' '.$value.'<br>';
}
foreach ($_POST['foodchoices'] as $food){
	$foods .= $food.', '; 
}
$content .= "foods: ".$foods;
mail('kdsecor@gmail.com','Catering Quote',$content,"Content-type:text/html");
echo "Thank you. We'll be in touch<br>";
}
?>



<form action="reg.php" method="post">
<label for="fullname">Full Name:</label><input type="text" id="fullname" name="fullname" placeholder="Enter Full Name Here" reqiured><br>
<label for="email">Email:</label><input type="email" id="email" name="email" placeholder="Email Address Here" required><br>
<label for="phone">Phone Number:</label><input type="tel" name="phone" placeholder="(232) 555-1212" value="(ddd) ddd-dddd" id="phone" required><br>
<label for="numberinparty">Number in party:</label><input id="numberinparty" type="number" name="numinparty" min="10" max="100" required><br>
<label for="dateofevent">Date of Event:</label><input type="date" id="dateofevent" name="dateofevent" placeholder="mm/dd/yyyy" required><br>
<label for="timeofevent">Time of Event:</label><input type="time" id="timeofevent" name="timeofevent" placeholder="HH:MM AM" required><br>
<label for="vegetarian">Vegetarian</label><input type="checkbox" id="vegetarian" value="vegetarian" name="foodchoices[]">
<label for="bbq">Barbeque</label><input type="checkbox" title="BBQ" id="bbq" value="bbq" name="foodchoices[]">
<label for="asian">Asian</label><input type="checkbox" id="asian" value="asian" name="foodchoices[]">
<label for="greek">Greek</label><input type="checkbox" id="greek" value="greek" name="foodchoices[]">
<label for="mexican">Mexican</label><input type="checkbox" id="mexican" value="mexican" name="foodchoices[]"><br>
<label for="comments">Comments:</label><br> <textarea id="comments" name="comments" placeholder="Enter Comments Here" rows="5" cols="20">
</textarea><br>
<label for="budget">Budget</label>
<select>
<option value="">Choose Below</option>
<option value="10000">10,000-15,000</option>
<option value="15000">15,000-25,000</option>
<option value="25000">25,000-50,000</option>
<option value="50000">50,000-100,000</option>
<option value="100000">100,000+</option>
</select><br>
<input type="submit" name="submit" value="Get Quote">
</form>







