die(); $h1 = 'Contact Us'; $dirDepth = substr_count($_SERVER['PHP_SELF'], '/'); for ($i = $dirDepth; $i >= 0; $i--) { $thisDepth = str_repeat("../", $i); $thisInclude = $thisDepth . 'includes/template_top.tpl'; if (file_exists($thisInclude)) { include $thisInclude; $thisFooter = $thisDepth . 'includes/template_btm.tpl'; break; } } if($_REQUEST['submit_contact']){ $info = $_REQUEST['info']; $request_appt = ($_REQUEST['request'] ? 'APPOINTMENT REQUESTED.' : ''); $msg = " Contact from: $info[fname] $info[lname] Email: $info[email] Phone: $info[phone] Message: $info[message] $request_appt "; $msg_check = strtolower($msg); $spam_fail = ($info['message'] == '' : 1 : 0); if(!$spam_fail) $spam_fail = strpos($msg_check, 'http'); if(!$spam_fail) $spam_fail = strpos($msg_check, 'bit.ly'); if(!$spam_fail) $spam_fail = strpos($msg_check, 'email: 1'); if(!$spam_fail) $spam_fail = strpos($msg_check, 'wdeacon'); if(!$spam_fail) $spam_fail = strpos($msg_check, 'cincata'); if(!$spam_fail) $spam_fail = strpos($msg_check, 'guarantee'); if(!$spam_fail) $spam_fail = strpos($msg_check, 'grigoriysoydh@outlook.com'); if(!$spam_fail) $spam_fail = strpos($msg_check, 'marciadripf2@hotmail.com'); if(!$spam_fail) $spam_fail = strpos($msg_check, 'venture'); if(!$spam_fail) $spam_fail = strpos($msg_check, 'click'); if(!$spam_fail) $spam_fail = strpos($msg_check, 'www'); if(!$spam_fail) $spam_fail = strpos($msg_check, 'crypto'); if(!$spam_fail) $spam_fail = strpos($msg_check, 'free'); if(!$spam_fail) $spam_fail = strpos($msg_check, 'website'); if(!$spam_fail) $spam_fail = strpos($msg_check, 'invest'); if(!$spam_fail) $spam_fail = strpos($msg_check, 'traffic'); if(!$spam_fail) $spam_fail = strpos($msg_check, 'regards'); if(!$spam_fail) $spam_fail = strpos($msg_check, ' sale'); if(!$spam_fail) $spam_fail = strpos($msg_check, 'buy '); if(!$spam_fail) $spam_fail = strpos($msg_check, 'loan '); if(!$spam_fail) $spam_fail = strpos($msg_check, ' loan'); if(!$spam_fail) $spam_fail = strpos($msg_check, ' brands'); if(!$spam_fail) $spam_fail = strpos($msg_check, 'marketing'); if(!$spam_fail) $spam_fail = strpos($msg_check, 'business'); if(!$spam_fail) $spam_fail = strpos($msg_check, 'geotrott'); if(!$spam_fail) $spam_fail = strpos($msg_check, ' offer'); if(!$spam_fail) $spam_fail = strpos($msg_check, 'unlimited'); $mail_args['from'] = 'contact@jthayesmd.com'; $mail_args['to'] = 'jthayesmd@aol.com'; $mail_args['cc'] = 'mschmidt@mcswebsolutions.com, mcarreroschmidt@gmail.com'; $mail_args['subject'] = 'Contact from Hayes Pain Management'; $mail_args['msg'] = $msg; if(!$spam_fail) send_mail($mail_args); } // EMAIL FUNCTION: function send_mail($args) {// $to,$from,$subject,$msg,$html, $cc, $bcc // Multiple recipients $to = $args['to']; // may have multiple recipients delineated with commas // Subject $subject = $args['subject']; // Message $message = ( $args['html'] != '' ? $args['html'] : $args['msg']); // To send HTML mail, the Content-type header must be set if($args['html'] != ''){ $headers[] = 'MIME-Version: 1.0'; $headers[] = 'Content-type: text/html; charset=iso-8859-1'; } // Additional headers if($args['to'] )$headers[] = "To: $args[to]"; if($args['from'])$headers[] = "From: $args[from]"; if($args['cc'] )$headers[] = "Cc: $args[cc]"; if($args['bcc'] )$headers[] = "Bcc: $args[bcc]"; $hdrs = implode("\r\n", $headers); // Mail it mail($to, $subject, $message, $hdrs); } function showVars($var="",$hide=1,$name=""){// For Debugging: shows vars $style = ($hide ? "display:none;" : "");// defaults to hidden so you can view in source; use 0 to display on page if($var == "") $var = $GLOBALS; if($name == "") $name = "VAR DUMP"; if(is_array($var)) $var = print_r($var,1); $name_display = ($name ? "$name:\n" : ""); print "
Contact us at 610-757-1035 to schedule an appointment or learn more about our clinic. We will be pleased to answer your questions.
You can also stop into our two location in the Greater Philadelphia area. Address and links for driving directions are below.
EAST NORRITON
Mercy Surburban Hospital Medical Center
Medical Arts Pavillion
2705 DeKalb Pike
Suite 307
East Norriton, PA 19401
Office Phone - 610 757 1035
Get Directions
Thank you for your contact. We will reach out to you soon!
}else{ ?> } ?>