$pageTitle = "Contact Us"; $pageTitleTwo = ""; $css =""; $over ="contact"; include('../_inc/functions.php'); printhead(); ?>
Empire State Medi-Cab
555 Broadhollow Road
Suite 301
Melville, New York 11747
Phone: 631-777-7333
Fax: 631-777-7335
Email:
For more specific information on what services Empire State Medi-Cab can perform for you, please fill out the page below. We accomodate many transportation needs. Our customers range from individuals to nursing facilities to hospitals to any party in need of our services. No request will be overlooked. Contact us to see how we can help you.
Fields marked with an * are required.
showform(); } if ($_POST['send'] == "send") { $email_array = explode("@",$email); if ($email_array[0] AND $email_array[1]) { $email = "$email"; } else { $email = ""; $emailerrortext = "Your email address is invalid. Please enter a valid email address (yourname@domain.com)
"; } // end email check if (!$_POST['name'] || !$_POST['email'] || !$_POST['comments'] ) { echo "Please be sure to complete all fields that are marked with a *
"; showform(); } else { // TIME $day = date("l"); $date = date("F jS, Y"); $longhour = date("Gi"); $hour = date("G", time()); $minutes = date("i"); // a $ip = "$REMOTE_ADDR"; $browplat = "$HTTP_USER_AGENT"; require("class.phpmailer.php"); $mail = new PHPMailer(); $mail->IsSMTP(); // set mailer to use SMTP $mail->Host = "mailhost.wwwebtek.com"; // specify main and backup server $mail->SMTPAuth = false; // turn on SMTP authentication $mail->From = "$email"; $mail->FromName = "$name"; $mail->AddAddress("info@empirestatemedicab.com", "Empire State Medi-Cab"); $mail->AddReplyTo("$email", "$name"); $mail->WordWrap = 50; // set word wrap to 50 characters //$mail->AddAttachment("/var/tmp/file.tar.gz"); // add attachments //$mail->AddAttachment("/tmp/image.jpg", "new.jpg"); // optional name $mail->IsHTML(true); // set email format to HTML $mail->Subject = "Contact Form from Empire Website"; $mail->Body = "** Contact Form from Empire Website **
====================================
Submitted: $day $date $hour:$minutes EST
====================================
General:
==========================
Name: $name
Company: $org
E-Mail: $email
Phone Number: $phone
Street Address:
$address
$city $states $zip
Comments or Questions:
$comments
====================================
====================================
ip address: $ip
browser & platform: $browplat
";
$mail->AltBody = "";
if(!$mail->Send())
{
echo "
Pleae fill in a valid email address. Message could not be sent.
"; showForm(); //echo "Mailer Error: " . $mail->ErrorInfo; exit; } echo "Your information was submitted. A representative will be in touch with you. If you need immediate assistance, please call 631-777-7333
"; } } ?> function showform() { $comments = stripslashes("$comments"); global $send,$ip,$browplat; $name = $_POST['name']; $org = $_POST['org']; $email = $_POST['email']; $phone = $_POST['phone']; $address = $_POST['address']; $city = $_POST['city']; $states = $_POST['states']; $zip = $_POST['zip']; $comments = $_POST['comments']; ?> } ?> printRib(); ?> box_transport(); ?> box_provide(); ?> printFoot(); ?>