
Contact Us
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/6676.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.
"; print_form($response); } } else { print_form(""); } function print_form($error){ if ($_SERVER['REQUEST_METHOD'] == 'POST') { $name = $_POST['name']; $email = $_POST['email']; $phone = $_POST['phone']; $year = $_POST['year']; $make = $_POST['make']; $model = $_POST['model']; $questions = $_POST['questions']; }else{ $name = ""; $email = ""; $phone = ""; $year = ""; $make = ""; $model = ""; $questions = ""; } $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 <<
You may contact us at the address and phone number listed, or by filling out the form below.

Contact Us Today!
Got questions? We've got answers! Drop us a line, give us a call, or even stop by. Our team is eager to help you with any auto repair needs you have. Let's get you back on the road safely and swiftly!
What Our Customers Are Saying
He did an amazing job! He identified the problem quickly and had an easy solution!! I would recommend them to anyone for all their car needs!
Tacoma, WA
Got me up and running in 30 min flat. Thank you Clinton cruise!
Tacoma, WA
Clinton was fabulous- punctual, professional and honest! Can't beat stress free automotive repair at our house= win win all around!
Tacoma, WA
It was quick and easy and he is very friendly and efficient. Top notch.
Tacoma, WA