Thank You
Tel No: $telephone
E-mail Address: $email
Enquiry: $enquiry
";
$missing='';
if(trim($_POST['name']) == '') {
$missing .= 'Name|';
}
if(trim($_POST['telephone']) == '') {
$missing .= 'Telephone|';
}
if(trim($_POST['email']) == '') {
$missing .= 'E-Mail Address|';
}
if(!isset($_SESSION['flag'])) {
$missing = 'SPAM';
echo 'You are trying to submit a SPAM message through the contact form, which is not allowed. Please go back and try again. Thank you! ';
echo "Please Click Here to go back. ";
} else {
if($missing == '') {
if(safemail($to,$email,$subject,$message)) {
safemail($toWOH,$email,$subject,$message);
?>
Thank you for sending
your enquiry to Chalet Chovettaz in Les Contamines in France. We will
contact you shortly with the required information.
Please continue to browse our web site.
} else {
?>
Error
Please supply valid email address.
}
} else {
?>
Please check the form
Please click the back button to return to the previous page, and fill out the following fields.
$missings = explode('|', $missing);
foreach($missings as $missed) {
if($missed != '') {
?>
}
}
?>
}
}
?> |