\n"; } return @mail($email, $subject, $text, $headers); } if (!($_SESSION['key'])) $_SESSION['key'] = substr(md5(time()), 0, 6); if ((isset($_POST['key'])) && ($_SESSION['key'] != $_POST['key'])) { $keyError = true; } else { if (isset($_POST['processform']) && $_POST['processform']) { if ((strlen($_POST["phone"]) <= 20) && (!strpos($_POST["phone"],"@")) && (!strpos($_POST["name"],"@")) && (!strpos($_POST["company"],"@")) && (!strpos($_POST["howdid"],"@")) && (strlen($_POST["company"]) <= 40) && (strlen($_POST["name"]) > 0) && (strlen($_POST["email"]) > 0)) { $howdid = ""; if (isset($_POST["se"])) $howdid .= "Search Engine
"; if (isset($_POST["ref"])) $howdid .= "Referral
"; if (isset($_POST["dex"])) $howdid .= "Dex Yellow Pages
"; if (isset($_POST["mag"])) $howdid .= "Magazine Advertisement
"; if (isset($_POST["veriz"])) $howdid .= "Verizon Super Pages
"; if (isset($_POST["other"])) $howdid .= "Other
"; $text = <<
Name: $_POST[name]
Company: $_POST[company]
Phone: $_POST[phone]
Email: $_POST[email]
How did you hear about net-craft.com?: $howdid
How can we help you?: $_POST[how_help]
HTML; notify('forms@netcraftmedia.com','Net-Craft.com Contact',$text,$_POST[email]); // notify('denis@net-craft.com','Net-Craft.com Contact',$text,$_POST[email]); } header("Location: contact_form_thanks.html"); } } ?> Scottsdale web development, web page design, logo design and web site promotion in Arizona