$v){ foreach($badStrings as $v2){ if(strpos($v, $v2) !== false){ logBadRequest(); header("HTTP/1.0 403 Forbidden"); mail('everettdir@firstpagefitness.com','Spammer Bot Attempt',$_SERVER['REMOTE_ADDR']); exit; } } } $name = $_POST['name']; $phone = $_POST['phone']; $email = $_POST['email']; $company_name = $_POST['company_name']; $company_profile = $_POST['company_profile']; $web_url = $_POST['web_url']; if(empty($_POST['current_marketing'])) { $_POST['current_marketing'] = Array(); // need to init as array so no warnings on call to if(in_array) below } else { $current_marketing_txt = implode(", ",$_POST['current_marketing']); } $referrer = $_POST['referrer']; $budget = $_POST['budget']; $message = $_POST['message']; $clipper = $_POST['clipper']; // validate fields if ($name == "") { $errors .= "Please enter your name.
"; } if (!preg_match("/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/", $email)) { $errors .= "Please enter a valid email address.
"; } if ($phone == "") { $errors .= "Please enter your phone number.
"; } if (!$errors) { // input is OK $subject = "FPF Email from website"; $mail_header = "From: ".$email."\n"; // define HTML content in header $mail_header .= "MIME-Version: 1.0\n"; $mail_header .= "Content-type: text/html; charset=iso-8859-1\n"; // recipients $to = "everett@firstpagefitness.com "; $mail_body = ' '; $mail_body .= "Below is your email from firstpagefitness.com

"; if($name!='') $mail_body .= "Name:
".$name."

"; if($phone!='') $mail_body .= "Phone:
".$phone."

"; if($email!='') $mail_body .= "Email:
".$email."

"; if($company_name!='') $mail_body .= "Company Name:
".$company_name."

"; if($company_profile!='') $mail_body .= "Company Profile:
".$company_profile."

"; if($web_url!='') $mail_body .= "Web site:
".$web_url."

"; if($current_marketing_txt!='') $mail_body .= "Current marketing:
".$current_marketing_txt."

"; if($budget!='') $mail_body .= "Budget:
".$budget."

"; if($message!='') $mail_body .= "Comments:
".$message."

"; $mail_body .= "User IP: ".$_SERVER['REMOTE_ADDR']."
"; $mail_body .= "Sent From: ".$_SERVER['PHP_SELF']."
"; $mail_body .= "Referrer: ".$referrer."
"; $mail_body .= "Clipboard contents:".$clipper."


"; $mail_status = mail($to, $subject, $mail_body, $mail_header); if (!$mail_status) { die("Message could not be sent due to an error while trying to send the mail."); } else { header("Location: http://www.firstpagefitness.com/thankyou.html"); /* Redirect browser */ /* Make sure that code below does not get executed when we redirect. */ exit; } } } ?> Contact First Page Fitness

First Page Fitness: Marketing Blog | Site Map | Fitness Blog |

Internet Marketing for Health & Fitness Websites

Helping Your Business Compete Online

First Page Fitness Wants to Hear From You!

If you are contacting us for reasons other than to enquire about healthcare, health and fitness marketing services, please be aware that we no longer offer these services.

To contact us please email [everett] at [firstpagefitness] dot [com] or mail to:

First Page Fitness, LLC
4136 South Logan Street
Denver, CO 80113