|
|
|
|
|
|
if ($submit)
{
if ($name && $email)
{
// Prevent E-mail Injection Spam
if (!($_POST['bcc'] || $_POST['cc'] || $_POST['Content-Type'] || eregi("theloungempls.com",$_POST['email']) || eregi("theloungempls.com",$email) || eregi("\r",$email) || eregi("\n",$email) || eregi("\r",$subject) || eregi("\n",$subject)))
{
$name = stripslashes($name);
$email = stripslashes($email);
$booth = stripslashes($booth);
$comments = stripslashes($comments);
$body = "\nName: $name\nPhone: $phone\nE-mail: $email\n\nDate of Reservation: $date\n\nBooth: $booth\n\nNumber of Guests: $number\n\nComments:\n$comments\n";
$subject = "Reservation request for $date by $name.";
$email = "$name " . "<$email>";
// mail reservation to Brian
mail("brianbell7@gmail.com", $subject, $body, "From: $email\r\n" . "Reply-To: $email\r\n" ."X-Mailer: PHP/" . phpversion());
// mail reservation to Per
mail("admin@sharpened.net", $subject, $body, "From: $email\r\n" . "Reply-To: $email\r\n" ."X-Mailer: PHP/" . phpversion());
if ($updates == "yes")
{
$subject2 = "Subscribe $name to The Lounge Mailing List";
$body2 = "\nAdd $email to The Lounge mailing list.\n\nSubscribed via http://www.theloungempls.com/reservations.html";
mail("brianbell7@gmail.com", $subject2, $body2,
"From: $email\r\n"
."Reply-To: $email\r\n"
."X-Mailer: PHP/" . phpversion());
mail("admin@sharpened.net", $subject2, $body2,
"From: $email\r\n"
."Reply-To: $email\r\n"
."X-Mailer: PHP/" . phpversion());
}
}
?>
|
|
|
|
Your reservation request has been sent.
All guests with reservations may use the VIP line
at The Lounge entrance for quicker entry.
if ($updates == "yes") { echo " You will also be added to The Lounge mailing list. "; }
?>
Return to The Lounge
|
} else // Not all fields have been filled out
{
echo "";
if (!$name) { echo "Please enter your name.
"; }
if (!$email) { echo "Please enter your e-mail address.
"; }
echo "";
?>
|
|
} else { ?>
|
|
|
|
|
} ?>
|
|
|