To contact $URL_contact, please call $client800 or complete the form below.

"; $template = "$Root/Templates/page2.dwt"; /** END Main **/ if ($_SERVER['REQUEST_METHOD'] == "POST") { include_once("$Root/inc/SpamCheck.class.php"); $spam = new SpamCheck(); if (!$spam->isValidEmail($URL_Email) || stristr($URL_Email, '@test.com')) { $post_ret = 'req'; } else { // $post_ret = get_web_page("http://contact.optinadvantage.com/common/$version/addmember.php"); $post_ret = get_web_page("http://smart-capture.vdsys.com/services/form-capture.php"); } } if (isset($post_ret) && $post_ret != 'req' && $post_ret != 'thanks') { exit($post_ret); } if ($post_ret=='req') { $reqmessage = "

Some required fields are not filled in. Please fill them in and re-submit.

"; $reqsymbol = "  Required."; } else { $reqmessage = "

(* indicates required field)

"; $reqsymbol = "*"; } if ($URL_message<>"") { $altMessage = $URL_message; } elseif ($URL_Name || $URL_Num) { $altMessage = "I was looking at property: ($URL_Num) $URL_Name"; if($URL_Avail){ $Avail = strftime("%m/%d/%Y",strtotime("$URL_Avail")); $altMessage .= ", arriving $Avail"; } if($URL_Stay){ $altMessage .= ", staying for $URL_Stay days"; } $altMessage .= " and would like to know..."; } include_once("$Root/inc/OpenTemplateParser.class.php"); $page = new TemplateParser($template); // the special picture for the content 01 $page->setSection('MainContent01','Devaun Park 888-890-LAND'); if (file_exists('optinform.css')) $page->appendSection($TEMPLATEHEAD,""); if (file_exists($ftype.'.css')) $page->appendSection($TEMPLATEHEAD,""); if ($post_ret!="thanks") { $page->setTitle($pageTitle); if (isset($TEMPLATEPAGEHEADER) && $TEMPLATEPAGEHEADER<>"") $page->setSection($TEMPLATEPAGEHEADER, $pageHeader); else { $contents .= '

'.$pageHeader.'

'; } $contents .= "
".$introText."
"; $contents .= "
".$reqmessage."
"; // start the form and make sure to add client-specific identifiers as hiddens so // that our non-client-specific form processor can tell who this is. $contents .= "
"; $contents .= ""; $contents .= ""; $contents .= ""; // for Devaun Park, include the contact name! $contents .= ""; $contents .= ""; // $contents .= "
"; $contents .= ""; /** BEGIN Contact **/ $contents .= ""; /** END Contact **/ /** BEGIN Questions **/ $contents .= " "; /** END Questions **/ $contents .= "
First Name: "") ? htmlentities(stripslashes($_POST['FirstName']), ENT_QUOTES) : "")."' size=24 maxlength=24 />$reqsymbol
Last Name: "") ? htmlentities(stripslashes($_POST['LastName']), ENT_QUOTES) : "")."' size=32 maxlength=32 />$reqsymbol
Email: "") ? htmlentities(stripslashes($_POST['Email']), ENT_QUOTES) : "")."' size=32 maxlength=64 />$reqsymbol
Please indicate the methods by which we may contact you:
emailphonepost
Subject line: "") ? htmlentities($_POST['TEXT:0000002043'], ENT_QUOTES) : "")."' />
Message:
May we contact you via email for announcements or special events?
"; $contents .= "

 
"; } else { header("Location: thanks-$ftype.html"); exit(); } $page->setSection($TEMPLATEMAINCONTENT01, $contents); $page->printPage(); function get_web_page( $url ) { global $_POST; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $_POST); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $content = curl_exec( $ch ); $err = curl_errno( $ch ); $errmsg = curl_error( $ch ); $header = curl_getinfo( $ch ); curl_close( $ch ); $header['errno'] = $err; $header['errmsg'] = $errmsg; $header['content'] = $content; return $content; } ?>