$title = " Contact"; $heading = "contact"; include ("header.html"); ?>
if ($_POST['Submit'] == "Send") { unset($error); if (strlen($_POST['name']) < 1) $error['name'] = "Invalid Name"; if (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $_POST['email'])) { $error['email'] = "Invalid Email"; } $ip = getenv("REMOTE_ADDR"); if (!isset($error)) { mail("info@mutualimage.com","Website Contact","Name = $_POST[name] Email = $_POST[email] Phone = $_POST[phone] Questions = $_POST[comments] IP = $ip","From: info@mutualimage.com\r\n"); print "A representative will contact you ASAP"; } } if ($_POST['Submit'] != "Send" || isset($error)) { ?>
} ?>include ("footer.html"); ?>