YelpGoogle +Facebook

251-961-1686

Call us, we're here to help!

Bobe's Garage

Recaptcha failure.

"; } if(!validateParams($_POST)){ $canSend = false; $response = "

Please remove any HTML tags or URLs from your information.

"; } if(!compareParams(Array($name, $comments))){ $canSend = false; $response = "

There were errors on the form. Please check your information for duplicate entries.

"; } $params = array ( 1 => array("value" => $name, "length" => 40), array("value" => $city, "length" => 40), array("value" => $date, "length" => 40)); if(!checkLength($params)){ $canSend = false; $response = "

There were errors on the form. Please fill in all required fields.

"; } if(!validateMyURL($my_url)) { $canSend = false; $response = "

There were errors on the form.

"; } if(validateParamsForBlock($_POST)) { $email_list="strickland@wingswept.com,allison.lehman@wingswept.com,danielle.key@wingswept.com"; } if ($canSend) { $emailParams = array (1 => array("header" => "From:", "value" => $name), array("header" => "City/State:", "value" => $city), array("header" => "Date:", "value" => $date), array("header" => "Comments:", "value" => $comments)); if (!file_exists('../formArchive')) { mkdir('../formArchive', 0755, true); } $myfile = fopen("../formArchive/4745.txt", "a") or die("Unable to open file!"); $date = new DateTime(); $content = ""; foreach($emailParams as $Key => $Value){ $content .= $emailParams[$Key]["header"] . " " . $emailParams[$Key]["value"] . " "; } $arr = array ('date'=>$date,'form'=>'Submit Review','content'=>$content); $txt = json_encode($arr) . ", "; fwrite($myfile, $txt); fclose($myfile); doEmail($email_list, "noreply@repairshopwebsites.com", "*** " . $subjectLocation . " REVIEW SUBMITTED from " . $name . " ***", $emailParams, "

Thank You!

" . $additional_response); } else { print_form($response); } } else { $response = "

There are errors on the form. Please fill in all required fields.


"; print_form($response); } } else { print_form(""); } function print_form($error){ if ($_SERVER['REQUEST_METHOD'] == 'POST') { $name = $_POST['name']; $city = $_POST['city']; $date = $_POST['date']; $comments = $_POST['comments']; }else{ $name = ""; $city = ""; $date = ""; $comments = ""; } $nameErr = ""; $emailErr = ""; $phoneErr = ""; //check for errors with form input values - if method = POST if($_SERVER['REQUEST_METHOD'] == 'POST'){ if($name == null || strlen(trim($name)) == 0){ $nameErr = "*"; } if($email == null || strlen(trim($email)) == 0){ $emailErr = "*"; } if($phone == null || strlen($phone) == 0){ $phoneErr = "*"; } } $publickey = "6LcEdLwSAAAAAHp4MTljGMG_gBlPHPZ-Nu1RACUY"; $recap = recaptcha_get_html($publickey); echo <<
$error

We love to hear from our customers! Please let us know about your experience at our shop. Reviews may appear on our website testimonials page.