\r\n" .
"Reply-To: ".$_POST['name']."<".$_POST['email'].">\r\n";
switch($_POST['department']) {
case 'questionspv@purevacations.com':
$_to = $_POST['department'];
break;
case 'questionspv@purevacations.com':
$_to = $_POST['department'];
break;
}
mail($_to,'Group Booking Request',$body,$headers);
require_once("corp_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['budget'])) {
$error_msg .= "You must enter an estimated budget per person.
";
}
if(empty($_POST['destination'])) {
$error_msg .= "You must enter a destination.
";
}
if(empty($_POST['date1'])) {
$error_msg .= "You must enter a preferred FROM travel date.
";
}
if(empty($_POST['date2'])) {
$error_msg .= "You must enter a preferred TO travel date.
";
}
}
break;
}
?>
include ('inc.banners.html');
?> |
||||||||||||||
|
||||||||||||||
include ('inc.2nd_bottom_nav.html');
?> |
||||||||||||||