 |
Diversity Supplier for all your Minority Program needs.
WBENC, NAWBO and SBA certified as a Woman Owned Business. |
|
 |
|
|
Questions via email:
$v = array(false, false, false); //validation
$submit = false;
if (isset ($_POST['submit'])) {
$submit = true;
//variables set from post
$first = $_POST['first_name']; //first name
$email = $_POST['email']; //email
$message = $_POST['message']; //message or inquiry
$regEmail = "/^[^0-9][A-z0-9_]+([.][A-z0-9_]+)*[@][A-z0-9_]+([.][A-z0-9_]+)*[.][A-z]{2,4}$/";
if (!empty($first)) $v[0] = true;
if (preg_match($regEmail, $email)) $v[1] = true; // convert to Regular Expressions
if (!empty($message)) $v[2] = true;
}
if ($v[0] && $v[1] && $v[2] && $resp->is_valid) {
$sendTo = 'Isabel@Diversity-Supplier.com';
$subject = 'General Inquiry';
$email_message = "
Message From Contact Form at GlobalSafetyCouncil.com
FROM: $first
E-MAIL: $email
COMMENT: $message
";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= "From: $first <$email>n"."\r\n" .
"Reply-To: {$_POST['email']}" . "\r\n" .
"X-Mailer: PHP/" . phpversion();
mail($sendTo, $subject, $email_message, $headers);
?>
}else {
?>
}
?>
|
|
|
|
|
|
|
|