See Deer Canyon Preserve with your own eyes. Nothing else can capture its incredible beauty. Let's arrange it!
Toll-Free: 1-877-573-3843
Email us
Deer Canyon Preserve is a part of
Heritage Preserve
P.O. Box 913
Mountainair, NM 87036";
switch ($page) {
case "contact": $content = $page07;
$title = "Contact Us";
$image = "contactus_lrg.jpg";
break;
case "orderdvd": $content = $page07;
$title = "Contact Us";
$image = "contactus_lrg.jpg";
break;
case "conf_mail": $content = $page07;
$title = "Contact Us";
$image = "contactus_lrg.jpg";
break;
case "dvd": $content = $page07;
$title = "Contact Us";
$image = "contactus_lrg.jpg";
break;
case "conf_web": $content = $page07;
$title = "Contact Us";
$image = "contactus_lrg.jpg";
break;
default:
$content = $page07;
$title = "Contact Us";
$image = "contactus_lrg.jpg";
$page = "contact";
break;
}
if ($_POST['DoIt'] == "1") {
$redirect = "";
$debug = 0;
$debugEmail = "brenda.daul@hpreserve.com";
$oid = "00D300000000rwC";
$retURL = "";
$URL = "www.dcpreserve.com";
$salutation = $_POST['prefix'];
$first_name = $_POST['fname'];
$last_name = $_POST['lname'];
$email = $_POST['email'];
$phone = $_POST['phone1']." - ".$_POST['phone2']." - ".$_POST['phone3'];
$income = "";
$street = $_POST['address'];
$city = $_POST['city'];
$state = $_POST['state'];
$zip = $_POST['zipcode'];
$country = "USA";
$Campaign_ID = $_POST['how_did_you2'];
$company = $last_name . "-" . $first_name . "-" . $zip;
//sub 1 hour from server time to find submit date (they are 1 hour behind server)
$dateoffset=(mktime()-3600);
$thedate = date('m/d/Y h:i A',$dateoffset);
//find out the date 10 days from current date (minus 1 hour)
$dateoffset=(mktime()+864000-3600);
$contactdate = date('m/d/Y',$dateoffset);
//lead source 1
$lead_source = $_POST['how_did_you'];
if ($lead_source == "Mail") {
$Campaign_ID = "70160000000ChdW";
}
if ($lead_source == "Internet Ad") {
$Campaign_ID = "70160000000CaaF";
}
if ($lead_source == "Other") {
$Campaign_ID = "70160000000Cdto";
}
if ($lead_source == "70160000000D9yH") {
$lead_source = "Magazine";
$Campaign_ID = "70160000000D9yH";
}
//lead source 2
//lead source 3
$a00N30000000rgg0 = $_POST['other'] ;
//concat other1 if any info was entered
if (strlen ( $_POST['other1'] ) > 0 )
{
if (strlen ($a00N30000000sSm7) > 0 )
{
$a00N30000000sSm7 = $a00N30000000sSm7 . ' / ';
}
$a00N30000000sSm7 = $a00N30000000sSm7 . $_POST['other1'];
}
//concat other2 if any info was entered
if (strlen ( $_POST['other2'] ) > 0 )
{
if (strlen ($a00N30000000sSm7) > 0 )
{
$a00N30000000sSm7 = $a00N30000000sSm7 . ' / ';
}
$a00N30000000sSm7 = $a00N30000000sSm7 . $_POST['other2'];
}
//concat other3 if any info was entered
if (strlen ( $_POST['other3'] ) > 0 )
{
if (strlen ($a00N30000000sSm7) > 0 )
{
$a00N30000000sSm7 = $a00N30000000sSm7 . ' / ';
}
$a00N30000000sSm7 = $a00N30000000sSm7 . $_POST['other3'];
}
$a00N30000000sSm7 = $_POST['other'];
$a00N30000000r7Py = $_POST['format'];
$a00N30000000r7Qb = $_POST['visit'];
$a00N30000000r7Qg = $_POST['visit_date'];
$a00N30000000r7Qv = $_POST['comments'];
$a00N30000000rpfa = $_POST['a00N30000000rpfa'];
$other1 = $_POST['other'];
$other2 = $_POST['other2'];
$other3 = $_POST['other3'];
$submit = "submit";
$reset = "reset";
switch ($_POST['format']) {
case "Mailed":
$e = "&00N60000001Ry5E=".date("n/j/y");
break;
case "Viewed On-Line and Mailed":
$e = "&00N60000001Ry5J=".date("n/j/y")."&00N60000001Ry5E=".date("n/j/y");
break;
case "Viewed On-Line":
$e = "&00N60000001Ry5J=".date("n/j/y");
break;
}
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://www.salesforce.com/servlet/servlet.WebToLead');
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, 'encoding=UTF-8&redirect=' . $redirect . '&debug=' . $debug . '&debugEmail=' . $debugEmail . '&URL=' . $URL . '&oid=' . $oid . '&retURL=' . $retURL . '&salutation=' . $salutation . '&first_name=' . $first_name . '&last_name=' . $last_name . '&Campaign_ID=' . $Campaign_ID . '&email=' . $email . '&phone=' . $phone . '&street=' . $street . '&city=' . $city . '&state=' . $state . '&zip=' . $zip . '&country=' . $country . '&company=' . $company . '&thedate=' . $thedate . '&contactdate=' . $contactdate . '&lead_source=' . $lead_source . '&00N300000017PGg='.$other. '&00N300000017L8J='.$lead_source. '&00N30000000rgfl=' . $a00N30000000rgfl . '&00N30000000rgg0=' . $a00N30000000rgg0 . '&00N30000000sSm7=' . $a00N30000000sSm7 . '&00N30000000r7Py=' . $a00N30000000r7Py . '&00N30000000r7Qb=' . $a00N30000000r7Qb . '&00N30000000r7Qg=' . $a00N30000000r7Qg . '&00N60000001SfyT=Deer Canyon Preserve&00N30000000r7Qv=' . $a00N30000000r7Qv . '&00N30000000rpfa=' . $thedate . '&00N30000000scAv=' . $contactdate . '&00N30000000xZvL=' . $thedate . '&00N300000017MfT='.$income.'&submit=' . $submit . '&reset=' . $reset . $e);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($ch);
//echo $result;
curl_close ($ch);
switch ($_POST['format']) {
case "Mailed":
header("Location: ?page=conf_mail");
exit;
break;
case "Viewed On-Line and Mailed":
case "Viewed On-Line":
header("Location: ?page=conf_web");
exit;
break;
}
}
?>
Contact Us | Deer Canyon Preserve
_
_
_