|
To contact Alloway Rozelle Lodge for further information or to make a reservation, please fill out the form below (or email SimondsRA@aol.com) or telephone 01292 440707
You did not enter your name.";
}
if(!empty($_POST[email]))
{
$email1 = strip_tags($_POST[email]);
}
else
{
echo " You did not enter your email address.";
}
if(!empty($_POST[otherinfo]))
{
$otherinfo1 = strip_tags($_POST[otherinfo]);
}
else
{
echo " The Comments field is empty.";
}
if(!empty($name1) && !empty($email1) && !empty($otherinfo1))
{
//I use the email for official corespondence
$to = "SimondsRA@aol.com";
//display the message author and his email
$from = "From: $name1 <$email1>";
//this subject will be visible only for you
$sub = "Website Enquiry";
//fit together all the post information into one message
$message = "Enquiry from visitor to website\n\nNAME: $name1\nEMAIL: $email1\nARRIVAL DATE: $startday $startmonth $startyear\nLENGTH OF STAY: $numberofnights nights\nROOM TYPE: $roomtype\nNUMBER OF ADULTS: $adults\n\nMORE INFORMATION: $otherinfo1";
//if a user has insert some html/javascript/php tags
//we will remove them for security reasons
$message = stripslashes($message);
//now send the message
mail($to, $sub, $message, $from);
//display "thank you" message. You can edit it and write what you want.
//if you want to use quotes at this message, use this format: \"text here\"
//you can use any html tags
echo " Thank you for contacting us. We will in touch as soon as possible.";
}
}
?>
|
View Larger Map


|