There was an error processing the form, please try again
"; } if(!validateParams($_POST)){ $canSend = false; $response = "Please remove any HTML tags or URLs from your information.
"; } if(!compareParams(Array($email, $name, $phone, $year, $make, $model, $questions))){ $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" => $email, "length" => 40), array("value" => $phone, "length" => 20), array("value" => $year, "length" => 4), array("value" => $make, "length" => 40), array("value" => $model, "length" => 40)); if(!checkLength($params)){ $canSend = false; $response = "There were errors on the form. Please fill in all required fields.
"; } if(!empty($year) && !is_numeric($year)) { $canSend = false; $response = "Please enter a valid year.
"; } if(!validatePhone($phone)) { $canSend = false; $response = "Please enter a valid phone number.
"; } 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" => "Date:", "value" => $date), array("header" => "From:", "value" => $name), array("header" => "Email:", "value" => $email), array("header" => "Phone:", "value" => $phone), array("header" => "Year:", "value" => $year), array("header" => "Make:", "value" => $make), array("header" => "Model:", "value" => $model), array("header" => "Questions:", "value" => $questions)); if (!file_exists('../formArchive')) { mkdir('../formArchive', 0755, true); } $myfile = fopen("../formArchive/6692.txt", "a") or die("Unable to open file!"); $date = new DateTime(); $content = ""; $index = 0; foreach($emailParams as $Key => $Value){ $content .= $emailParams[$Key]["header"] . " " . $emailParams[$Key]["value"] . " "; $index = $Key; } foreach($_POST as $key =>$value){ if (!($key == "location" || $key == "name" || $key == "email" || $key == "phone" || $key == "year" || $key == "make" || $key == "model" || $key == "questions" || $key == "submit" || $key == "my_url" || $key == "g-recaptcha-response" || $key == "recaptchaScore" || $key == "recaptchaResponse" || $key == "captchaFormName" || $key == "recaptcha-v3-token" || $key == "captchaFormId")) { $content .= $key . ": " . $value . ""; $emailParams[$index + 1]["header"] = $key . ": "; $emailParams[$index + 1]["value"] = $value; $index != 1; } } $arr = array ('date'=>$date,'form'=>'Contact','content'=>$content,'locationId'=>$locationId,'recaptcha_score'=>$recaptcha_score); $txt = json_encode($arr) . ", "; fwrite($myfile, $txt); fclose($myfile); doEmail($email_list, "noreply@repairshopwebsites.com", "*** " . $subjectLocation . " WEBSITE CONTACT from " . $name . " ***", $emailParams, "Thank You!
Someone will get back to you soon with a response.
There are errors on the form. Please fill in all required fields.
You may contact us at the address and phone number listed, or by filling out the form below.
I called Miguel after 5pm on a Friday because my son hit a bump on the highway and his car was making a weird sound. Even though he was about to close, he drove 30 min to meet my son and fixed his car on the spot. He was professional, pleasant, and affordable. He saved the weekend!