require($_SERVER["DOCUMENT_ROOT"]."/scripts/utils.php"); $title="Contact Us About New Homes in Richmond VA"; $meta = "Let us help you find your new home in Richmond VA."; $section_nav = "about_us"; $section = "about_us"; $subSection = "Contact Us"; $navOn = "contact_us.html"; $isOn = "breadOn"; $breadTitleArray = array("About Us", " Contact Us"); $breadLinkArray = array("about_us.html", "contact_us.html"); $form->setRequiredFields(array("email")); $howdidyouhear = array("print_advertising"=>"Print Advertising","tv_advertising"=>"TV Advertising","radio_advertising"=>"Radio Advertising","internet_search"=>"Internet Search","e_mail"=>"E-mail","_other"=>"Other"); require($_SERVER["DOCUMENT_ROOT"]."/includes/_initialization.php"); if ($isPost){ if ($form->checkRequiredFields() == "") { $communityName = "General"; if(isset($_POST["community_id"]) && $_POST["community_id"] != "") { $cID = $_POST["community_id"]; $rsCommunity = getCommunityInfo($cID); while ($curCommunity = mysql_fetch_array($rsCommunity, MYSQL_ASSOC)) { $communityName = $curCommunity['name']; } } $body = "Message from: " . $_POST["firstName"] . " " . $_POST["lastName"]. "\n"; $body .= "Phone: " . $_POST["phone"] . "\n"; $body .= "Email: " . $_POST["email"] . "\n\n"; $body .= "How did you hear?: "; $addComma = false; foreach($howdidyouhear as $catKey=>$catName) { if(isset($_POST[$catKey])) { if($addComma) { $body .= ", "; } $body .= $catName; $addComma = true; } } $body .= "\n"; $body .= "Community: ".$communityName." \n"; $body .= "Other: " . $_POST["other"] . "\n"; $body .= "Comments: " . $_POST["comments"] . "\n\n"; //$controller->sendEmail($_POST["email"],"kyeatman@stylecrafthomes.com", "", "StyleCraft Homes Web Site Contact Us", $body); $controller->sendEmail($_POST["email"],"kyeatman@comcast.net", "", "StyleCraft Homes Web Site Contact Us", $body); $controller->sendEmail($_POST["email"],"wyngaard@msn.com", "", "StyleCraft Homes Web Site Contact Us", $body); $successfulSubmission = true; } else { $message = "
Your email has been sent to StyleCraft Homes.
}else{?>Use the form below or call us to let us know how we can help you find the perfect home for you! We welcome your comments, questions and suggestions, too.
StyleCraft Homes
6225 Lakeside Ave.
Richmond, VA 23228-5238
(804) 627-0000
Become a fan of StyleCraft Homes on Facebook and follow us on Twitter!