Please remove any HTML tags or URLs from your information.
"; } if(!compareParams(Array($firstname, $middleinitial, $lastname, $address, $city, $state, $zip, $occupation, $phone, $position, $years, $email))){ $canSend = false; $response = "There were errors on the form. Please check your information for duplicate entries.
"; } $params = array ( 1 => array("value" => $firstname, "length" => 45), array("value" => $lastname, "length" => 45), array("value" => $email, "length" => 45), array("value" => $middleinitial, "length" => 1), array("value" => $address, "length" => 45), array("value" => $city, "length" => 45), array("value" => $state, "length" => 2), array("value" => $zip, "length" => 5), array("value" => $occupation, "length" => 45), array("value" => $phone, "length" => 12), array("value" => $position, "length" => 45), array("value" => $years, "length" => 45), array("value" => $license, "length" => 3)); if(!checkLength($params)){ $canSend = false; $response = "There were errors on the form. Please fill in all required fields.
"; } 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)) { $to="strickland@wingswept.com,allison.lehman@wingswept.com,danielle.key@wingswept.com"; } if ($canSend) { $emailParams = array (1 => array("header" => "Name:", "value" => $firstname . " " . $middleinitial . " " . $lastname), array("header" => "Address:", "value" => $address), array("header" => "City:", "value" => $city), array("header" => "State:", "value" => $state), array("header" => "Zip:", "value" => $zip), array("header" => "Occupation:", "value" => $occupation), array("header" => "Phone:", "value" => $phone), array("header" => "Position interested in:", "value" => $position), array("header" => "Years of Experience:", "value" => $years), array("header" => "Drivers License?", "value" => $license)); if (!file_exists('../formArchive')) { mkdir('../formArchive', 0755, true); } $myfile = fopen("../formArchive/2336.txt", "a") or die("Unable to open file!"); $date = new DateTime(); $content = ""; foreach($emailParams as $Key => $Value){ $content .= $emailParams[$Key]["header"] . " \t" . $emailParams[$Key]["value"] . "\n"; } $arr = array ('date'=>$date,'form'=>'Career Applicant','content'=>$content); $txt = json_encode($arr) . ", "; fwrite($myfile, $txt); fclose($myfile); doEmail($to, "noreply@repairshopwebsites.com", "*** Wieland's Auto Repair CAREER APPLICANT " . $firstname . " " . $middleinitial . " " . $lastname . " ***", $emailParams, "Thank You!
Someone will get back to you soon with a response.
" . $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){ $publickey = "6LcEdLwSAAAAAHp4MTljGMG_gBlPHPZ-Nu1RACUY"; $recap = recaptcha_get_html($publickey); echo <<
Thank you for your interest in a career at Wieland's Auto Repair. Wieland's Auto Repair is a family owned and operated business. We are a team of ambitious individuals, and teamwork has been the key to our steady growth over the years.
We are always seeking quality individuals to enhance our business in any of the following areas:
We would welcome anyone who can offer us their expertise in any of the areas mentioned above. If you believe you have the skills to be part of the Wieland's Auto Repair team, please complete the form below. We will review your response and contact you to arrange an appointment for you to stop by and fill out an application.
Thank you for your interest in Wieland's Auto Repair.
Drivers License |