include 'header.php'?> include 'left.php'?> include 'right.php'?>
To make reservation at Nakara Residence by email, please use the following form:
} elseif (empty($txtfirstname) || empty($txtemail) || empty ($txtcomment)) { //form has been submitted with empty fields, display empty fields message: echo $empty_fields_message; } else { //form has been submitted, process for mailing. // Stop the form being used from an external URL // Get the referring URL $referer = $_SERVER['HTTP_REFERER']; // Get the URL of this page $this_url = "http://".$_SERVER['HTTP_HOST'].$_SERVER["REQUEST_URI"]; // If the referring URL and the URL of this page don't match then // display a message and don't send the email. if ($referer != $this_url) { echo "You do not have permission to use this script from another URL."; exit; } $todayis = date("l, F j, Y, g:i a") ; $subject = $txtattn . " (" . $the_subject . ")"; $message = " $todayis [EST] \n\nMessage: $txtcomment \n\nFrom: $txtfirstname ($txtemail)\n"; // The URLs matched so send the email mail($the_email, $subject, $message, "From: $txtfirstname <$txtemail>"); if ($the_ccemail !="" ) { mail($the_ccemail, $subject, $message, "From: $txtfirstname <$txtemail>"); } // Display the thankyou message echo $thankyou_message; } ?> include 'footer.php'?>