\r\n" .
"Reply-To: ".$_POST['name']."<".$_POST['email'].">\r\n";
switch($_POST['department']) {
case 'questionspv@purevacations.com':
$_to = $_POST['department'];
break;
case 'keaton@purevacations.com':
$_to = $_POST['department'];
break;
}
mail($_to,'Website Contact Request',$body,$headers);
require_once("contact_thanks.html");
exit;
} else {
if(empty($_POST['name'])) {
$error_msg .= "You must enter your name.
";
}
if(empty($_POST['email'])) {
$error_msg .= "You must enter your email address.
";
}
if(empty($_POST['message'])) {
$error_msg .= "You must enter a message.
";
}
}
break;
}
?>
include ('inc.banners.html');
?> |
|||||||||||||
|
|||||||||||||
include ('inc.2nd_bottom_nav.html');
?> |
|||||||||||||