success && $recaptcha->action == 'contact' && $recaptcha->score >= 0.5) { $recaptcha_valid = true; } } if (!$recaptcha_valid) { die("You have been detected as a bot and blocked from submitting this form for security reasons, please try again shortly or Contact us if you are still having issues."); } } function replaceVariables($code) { foreach ($_POST as $key => $value) { if (is_array($value)) { $value = implode(",", $value); } $name = "$" . $key; $code = str_replace($name, $value, $code); } $code = str_replace('$ipaddress', $_SERVER['REMOTE_ADDR'], $code); return $code; } if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['formid']) && $_POST['formid'] == 'contact') { $mailto = 'service@carrolltontaxi.com'; $mailfrom = 'tkseta@msn.com'; $mailbcc = 'service@bigdair.com'; $mailname = 'Carrollton Taxi'; $subject = 'ONLINE FORM CTS'; $message = 'ONLINE FORM CTS'; $success_url = './FAQ.html'; $error_url = './wb17_boutique_details.html'; $eol = "\n"; $error = ''; $internalfields = array ("submit", "reset", "send", "filesize", "formid", "captcha", "recaptcha_challenge_field", "recaptcha_response_field", "g-recaptcha-response", "h-captcha-response"); try { $boundary = md5(uniqid(time())); $header = 'From: '.$mailname.' <'.$mailfrom.'>'.$eol; $header .= 'Reply-To: '.$mailfrom.$eol; $header .= 'Bcc: '.$mailbcc.$eol; $header .= 'MIME-Version: 1.0'.$eol; $header .= 'Content-Type: multipart/mixed; boundary="'.$boundary.'"'.$eol; $header .= 'X-Mailer: PHP v'.phpversion().$eol; $message .= $eol; $message .= "IP Address : "; $message .= $_SERVER['REMOTE_ADDR']; $message .= $eol; foreach ($_POST as $key => $value) { if (!in_array(strtolower($key), $internalfields)) { if (is_array($value)) { $message .= ucwords(str_replace("_", " ", $key)) . " : " . implode(",", $value) . $eol; } else { $message .= ucwords(str_replace("_", " ", $key)) . " : " . $value . $eol; } } } $body = 'This is a multi-part message in MIME format.'.$eol.$eol; $body .= '--'.$boundary.$eol; $body .= 'Content-Type: text/plain; charset=UTF-8'.$eol; $body .= 'Content-Transfer-Encoding: 8bit'.$eol; $body .= $eol.stripslashes($message).$eol; if (!empty($_FILES)) { foreach ($_FILES as $key => $value) { if ($_FILES[$key]['error'] == 0) { $body .= '--'.$boundary.$eol; $body .= 'Content-Type: '.$_FILES[$key]['type'].'; name='.$_FILES[$key]['name'].$eol; $body .= 'Content-Transfer-Encoding: base64'.$eol; $body .= 'Content-Disposition: attachment; filename='.$_FILES[$key]['name'].$eol; $body .= $eol.chunk_split(base64_encode(file_get_contents($_FILES[$key]['tmp_name']))).$eol; } } } $body .= '--'.$boundary.'--'.$eol; if ($mailto != '') { mail($mailto, $subject, $body, $header); } $successcode = file_get_contents($success_url); $successcode = replaceVariables($successcode); echo $successcode; } catch (Exception $e) { $errorcode = file_get_contents($error_url); $replace = "##error##"; $errorcode = str_replace($replace, $e->getMessage(), $errorcode); echo $errorcode; } exit; } ?> Untitled Page
OUR SERVICES

Non Emergency Medical Transportation:




Doctor visit transfers

Colonscopy visits

Dentist visits

Cataract visits





Call us: 972-416-8294