Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $name = $_POST['name'];
- $party_date = $_POST['party_date'];
- $number_in_party = $_POST['number_in_party'];
- $time = $_POST['time'];
- $email = $_POST['email'];
- $phone = $_POST['phone'];
- $comments = $_POST['comments'];
- $sendTo = "party@stellarwinebar.com" ;
- $subject = "Stellar Reserve Results";
- $headers = "From: " . $_POST["name"];
- $headers .= "<" . $_POST["email"] . ">\r\n";
- $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
- $headers .= "Return-Path: " . $_POST["email"];
- $message =
- "
- $name would like to make a reservation at Stellar for $party_date . Here are the details:
- Name: $name \n
- Email: $email \n
- Phone: $phone \n
- Party Date: $party_date \n
- Time: $time \n
- Number in Party: $number_in_party \n
- Comments: $comments \n
- ";
- mail($sendTo, $subject, $message, $headers);
- echo "<meta http-equiv='refresh' content='2;URL=reservestellarthankyou.html'>"
- ?>
Add Comment
Please, Sign In to add comment