<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<style>
input {
min-width:120px;	
}
 
input[type="radio"] {
min-width:5px;	
}

</style>

</head>
<body>
<?php
 $submit = $_POST['submit'];
if ($submit== 'Reserve'){
  $fname = $_POST['fname'];
  $email = $_POST['email'];
$appointment = $_POST['appointment'];
$phone = $_POST['phone'];
$veggie	= $_POST['veggie'];
$location = $_POST['location'];
$comments = $_POST['comments'];
$content = "Name: $fname <br>  
Email: $email<br>
Time: $appointment<br>
Phone: $phone<br>
Vegetarian: $veggie<br>
Location: $location<br>
Comments: $comments"; 
mail("email here","Reservation",$content,"Content-type:text/html");
echo "Thank you ".$fname.", we look forward to serving you on ".$appointment."<br>"; 
}

?>



<h3>Reservations</h3>
<form action="form.php" method="post">

 <input type="text" name="fname" id="fname" placeholder="Enter Full Name" value="" required/><br>
<input type="email" name="email" placeholder="Enter Email Address" value="" required/><br>
<input type="date" name="appointment" placeholder="mm/dd/yyyy" required/><br>
<input type="number" name="date" placeholder="Number of people in party" min="1" max="6" required/><br>
<input type="tel" name="phone" placeholder="Enter Contact Number" value="" required/><br>
Will there be a need for a Vegetarian menu?<br>
<label for="veggieyes">Yes</label><input type="radio" name="veggie" id="veggieyes" value="yes"><label for="veggieno">No</label><input type="radio" id="veggieno" name="veggie" value="no"><br>
<select name="location">
<option value="Choose Location">Choose Location</option>
<option value="Ocean Beach">Ocean Beach</option>
<option value="Point Loma">Point Loma</option>
</select><br>
<textarea name="comments" rows="5" cols="20" placeholder="Enter Comments Here"></textarea><br>
<input type = "submit" name="submit" value="Reserve">
</form>
</body>
</html>
