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 = "
Please enter all required (*) fields.
"; } } require($_SERVER["DOCUMENT_ROOT"]."/includes/_page_top.php"); ?>

Thank You!

Your email has been sent to StyleCraft Homes.

How can we help you?

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

$catName) {?>
getFieldHeader("firstName", "First name");?> getTextField2("firstName","30");?>
getFieldHeader("lastName", "Last name");?> getTextField2("lastName","30");?>
getFieldHeader("phone", "Phone");?> getTextField2("phone","30");?>
getFieldHeader("email", "E-mail");?> getTextField2("email","30");?>
getFieldHeader("howdidyouhear", "How did you first hear about StyleCraft Homes?");?>
getCheckbox($catKey, $catKey)?>
getFieldHeader("community", "About which community would you like information?");?>
getDBPulldown("community_id", "select id,name from communities where is_active = 1 order by name", $form->getField("community_id"), "", "General", "name", "id") ?>
getFieldHeader("comments", "Comments");?>
getTextArea("comments","5","45")?>
 
Submit Clear

Become a fan of StyleCraft Homes on Facebook and follow us on Twitter!

Twitter Facebook