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 (isset($_POST['DoIt'])&&$_POST['DoIt'] == "1") {
$redirect = "";
$debug = 0;
$debugEmail = "matt@echelondevelopment.com";
$oid = "00D300000000rwC";
$retURL = "";
$URL = "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 == "Kontera") {
$lead_source = "Internet Ad";
$Campaign_ID = "70160000000DKXl";
} elseif ($lead_source == "Yahoo") {
$lead_source = "Internet Ad";
$Campaign_ID = "70160000000DBNl";
}elseif ($lead_source == "Mail") {
$Campaign_ID = "70160000000ChdW";
}
elseif ($lead_source == "Internet Ad") {
$Campaign_ID = "70160000000CaaF";
}
elseif ($lead_source == "Other") {
$Campaign_ID = "70160000000Cdto";
}
//lead source 2
if ($_POST['how_did_you'] == "Montaraz is Going Public Mailer") {
$lead_source = "Mail";
$_POST['how_did_you'] = "Mail";
$Campaign_ID = "70160000000DCco";
}
if ($_POST['how_did_you'] == "Mailer") {
$lead_source = "Mail";
$_POST['how_did_you'] = "Mail";
$Campaign_ID = "70160000000DC9s";
}
//lead source 3
$a00N30000000rgg0 = $_POST['other'] ;
if ($_POST['how_did_you'] == "Ponderosa Pine Mailer") {
$lead_source = "Mail";
$_POST['how_did_you'] = "Mail";
$Campaign_ID = "70160000000DCct";
}
//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";
$_POST['00N60000001TRWD'] = ($_POST['00N60000001TRWD']);
$_POST['00N60000001TRWR'] = ($_POST['00N60000001TRWR']);
$_POST['00N60000001TRT3'] = ($_POST['00N60000001TRT3']);
$_POST['00N60000001TRWb'] = ($_POST['00N60000001TRWb']);
$_POST['00N60000001TRWW'] = ($_POST['00N60000001TRWW']);
$_POST['00N60000001TRWg'] = ($_POST['00N60000001TRWg']);
$_POST['00N60000001TUNW'] = ($_POST['00N60000001TUNW']);
$reset = "reset";
$e = "&00N60000001Ry5E=".date("n/j/y")."&00N60000001TRWD={$_POST['00N60000001TRWD']}&00N60000001TRWR={$_POST['00N60000001TRWR']}&00N60000001TRT3={$_POST['00N60000001TRT3']}&00N60000001TRWb={$_POST['00N60000001TRWb']}&00N60000001TRWW={$_POST['00N60000001TRWW']}&00N60000001TRWg={$_POST['00N60000001TRWg']}&00N60000001TUNW={$_POST['00N60000001TUNW']}&00N60000001TUWO={$_POST['00N60000001TUWO']}&00N60000001TUWd={$_POST['00N60000001TUWd']}&00N60000001TUX7={$_POST['00N60000001TUX7']}&00N60000001TUVk={$_POST['00N60000001TUVk']}&00N60000001TRWg={$_POST['00N60000001TRWg']}";
if ($_POST['00N60000001SsUC']){$boke=1;}else{$boke=0;}
$ch = curl_init();
$posts = '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 . '&00N60000001Ryrc=Deer Canyon Preserve&company=' . $company . '&thedate=' . $thedate . '&contactdate=' . $contactdate . '&lead_source=' . $lead_source . '&00N300000017PGg='.$other. '&00N300000017L8J='.$lead_source. '&00N30000000rgfl=' . $a00N30000000rgfl . '&00N30000000rgg0=' . $a00N30000000rgg0 . '&00N30000000sSm7=' . $a00N30000000sSm7 . '&00N60000001SsUC=' . $boke . '&00N30000000r7Py=' . $a00N30000000r7Py.$e . '&00N30000000r7Qb=' . $a00N30000000r7Qb . '&00N30000000r7Qg=' . $a00N30000000r7Qg . '&00N60000001SfyT=Deer Canyon Preserve&00N60000001TX65=Website&00N30000000r7Qv=' . $a00N30000000r7Qv . '&00N30000000rpfa=' . $thedate . '&00N30000000scAv=' . $contactdate . '&00N30000000xZvL=' . $thedate . '&00N300000017MfT='.$income.'&submit=' . $submit . '&reset=' . $reset;
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, $posts);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($ch);
curl_close ($ch);
header('location: http://dcpreserve.com/betadvd/?page=conf_web');
}
?>