$mlsnumber = $_REQUEST['m']; $listing_city = $_REQUEST['c']; $address = $_REQUEST['a']; $agent_id = $_REQUEST['i']; $price = $_REQUEST['p']; $PROPERTYTYPE = $_REQUEST['PROPERTYTYPE']; $btn = $_REQUEST['BTN']; $searchtype = $_REQUEST['searchtype']; if(isset($_POST['Submit'])) { foreach (array_keys($_POST) as $curvar) { $$curvar = stripslashes($_POST[$curvar]); //Slashes are added automatically and we must remove them. } if ($first_name != "" && $last_name != "" && $email != "") { $email = trim($email); if(!eregi("^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,6}$", $email)) $error_info = "*Please include a valid e-mail address."; elseif($phone == "12345" || $phone == "123456") //this is to fix a spamming problem $error_info = "*Please include a valid phone number."; elseif (eregi("href", $comments)) $error_info = "*Comments field contains invalid text."; elseif (eregi("href", $address)) $error_info = "*Address field contains invalid text."; // else // include "requestmail.php"; } else $error_info = "*In order for us to process your request, we need all required information filled out."; } // require_once "/var/www/bosshardtrealty.com/database.php"; // require_once "/var/www/bosshardtrealty.com/lib_user.php"; ?>