
Appointment Request at Santa Ana Auto Care
Thank You!
Your appointment request has been received. You will receive a follow up email or phone call to confirm your appointment.
Thank You!
Your appointment has been reserved.
There are errors on the form. Please completely fill out all required fields.
"; print_form($response); } } else { print_form(""); } function print_form($error){ if ($_SERVER["REQUEST_METHOD"] === "POST") { $name = $_POST['name']; $phone = $_POST['phone']; $email = $_POST['email']; $method = $_POST['method']; $year = $_POST['year']; $make = $_POST['make']; $model = $_POST['model']; $vin = $_POST['vin']; $appointment = $_POST['appointment']; $date1 = $_POST['date1']; $time = $_POST['time']; $comments = $_POST['comments']; } else { $name = ""; $phone = ""; $email = ""; $method = ""; $year = ""; $make = ""; $model = ""; $vin = ""; $appointment = ""; $date1 = ""; $time = ""; $comments = ""; } //error variables $nameErr = ""; $phoneErr = ""; $emailErr = ""; $methodC = ""; $methodT = ""; $methodE = ""; $date1Err = ""; $timeErr = ""; $vehicleY = ""; $vehicleN = ""; $appointmentD = ""; $appointmentW = ""; $yearErr = ""; $makeErr = ""; $modelErr = ""; $vinErr = ""; if ($_SERVER["REQUEST_METHOD"] === "POST") { if($name == null || strlen(trim($name)) == 0){ $nameErr = "*"; } if($phone == null || strlen(trim($phone)) == 0){ $phoneErr = "*"; } if($email == null || strlen(trim($email)) == 0){ $emailErr = "*"; } if($method == 'Phone Call'){ $methodC = "checked"; }else if($method == 'Text'){ $methodT = "checked"; } else if($method == 'Email'){ $methodE = "checked"; } if($date1 == null || strlen($date1) == 0){ $date1Err = "*"; } if($time == null || strlen($time) == 0){ $timeErr = "*"; } if($appointment == 'Drop Off'){ $appointmentD = "checked"; }else if($appointment == 'Waiting'){ $appointmentW = "checked"; } if($year == null || strlen(trim($year)) == 0){ $yearErr = "*"; } if($make == null || strlen(trim($make)) == 0){ $makeErr = "*"; } if($model == null || strlen(trim($model)) == 0){ $modelErr = "*"; } if(!(strlen(trim($vin)) == 0 || strlen(trim($vin)) == 17)){ $vinErr = "*"; } } // figure out what days are full and plug that into the javascript $formsArrayJSON = []; if (file_exists("../formArchive/6310.txt") && strlen(file_get_contents("../formArchive/6310.txt")) >= 2) { // parse the json into an array $fileContents = file_get_contents("../formArchive/6310.txt"); $lastComma = strrpos($fileContents, ",", -1); $formJsonString = "{\"forms\": [" . substr($fileContents, 0, $lastComma) . "]}"; $formsArrayJSON = json_decode($formJsonString, true); } // data from the database. this variable is an array $dbFormData = [6652 => [5, []]]; // add json data to the db data if (sizeof($formsArrayJSON) > 0 ) { $formsArray = $formsArrayJSON["forms"]; for ($i = 0; $i < count($formsArray); $i++) { // only look at forms called Appointment Request if ($formsArray[$i]["form"] == "Appointment Request") { if (isset($dbFormData[ (int)$formsArray[$i]["locationId"] ])) { $arrayToAddTo =& $dbFormData[ (int)$formsArray[$i]["locationId"] ][1]; $dateToUpdate = $formsArray[$i]["appointmentDate"]; $dateToUpdate = str_replace("/", "-", $dateToUpdate); // if there isnt an entry for this date yet, add one if (!isset($arrayToAddTo[$dateToUpdate])) { $arrayToAddTo += [$dateToUpdate => 0]; } $arrayToAddTo[$dateToUpdate]++; } } } } // fill an array of dates that are already full $blockedDates = "["; foreach ($dbFormData as $locationId => $locData) { $blockedDates .= "[{$locationId}, ["; $maxCarsPerDay = $locData[0]; forEach($locData[1] as $date => $cars) { // if the cars on that day exceed the max, add it to the blocked dates if ($cars >= $maxCarsPerDay) { $blockedDates .= "'" . $date . "', "; } } // trim off the last , and setup for the if (substr($blockedDates, -1) != "[") { $blockedDates = substr($blockedDates, 0, -2); } $blockedDates .= "]], "; } // if its empty, then there are no configured locations -- make an empty array if (strlen($blockedDates) <= 1) { $blockedDates = "[]"; } else { $blockedDates = substr($blockedDates, 0, -2) . "]"; } $publickey = "6LcEdLwSAAAAAHp4MTljGMG_gBlPHPZ-Nu1RACUY"; $recap = recaptcha_get_html($publickey); echo <<
Request an auto repair appointment at Santa Ana Auto Care in Houston
Once your auto repair appointment has been confirmed, simply drop your car or truck off at our repair shop at 5512 W 34th St, Houston, TX on the scheduled day. We'll give you a call when it is ready. Discover for yourself why we are a trusted name in auto repair in Houston. No more waiting! Just fill out the appointment form below or call now at 713-543-8771!
Location
This location is not currently accepting online appointments.
Personal Information
Preferred Method of Contact |
Appointment Information
Type of Appointment |
Appointment Date & Time
(Please give a 48 hour minimum notice)
Vehicle Information
$vinErrServices Requested/Comments
Discover More About Appointments and Repair Services At Santa Ana Auto Care in Houston
Alignment Services
Computer Diagnostics
Coupons