100) $financial_error = "Your street address must be less than 100 characters."; // City checks elseif (strlen($_POST[city]) > 50) $financial_error = "Your city must be less than 50 characters."; elseif (preg_match("/[^a-zA-Z0-9 ,\(\)\.-]/", $_POST[city])) $financial_error = "Your city contains invalid characters. Please use only alphanumeric characters."; // State check elseif (!preg_match("/[A-Z]{2}/", strtoupper($_POST[state]))) $financial_error = "Please use the two letter code for your state. A list can be found here."; // Zipcode check elseif (!preg_match("/\d{5}-\d{4}/", $_POST[zip]) and !preg_match("/\d{5}/", $_POST[zip])) $financial_error = "Please enter your zip code in the format xxxxx or xxxxx-xxxx."; else // Passed! Insert their information into the database. { // Escape everything $safefirst = mysql_escape_string($_POST[first]); $safelast = mysql_escape_string($_POST[last]); $safestreet= mysql_escape_string($_POST[street]); $safecity = mysql_escape_string($_POST[city]); $safestate = mysql_escape_string(strtoupper($_POST[state])); $safezip = mysql_escape_string($_POST[zip]); $safeemail = mysql_escape_string(strtolower($_POST[email])); $safehomephone = mysql_escape_string($_POST[homephone]); $safeworkphone = mysql_escape_string($_POST[workphone]); $safemobilephone = mysql_escape_string($_POST[mobilephone]); $safecontacttime = mysql_escape_string($_POST[contacttime]); $safeagent = mysql_escape_string($_POST[agent]); $safeplans = mysql_escape_string($_POST[plans]); $safeadded = mysql_escape_string(date("m-d-Y h:i:sa")); $insert = "INSERT INTO finance (first, last, street, city, state, zip, email, homephone, workphone, mobilephone, contacttime, agent, plans, date_added) VALUES('$safefirst', '$safelast', '$safestreet', '$safecity', '$safestate', '$safezip', '$safeemail', '$safehomephone', '$safeworkphone', '$safemobilephone', '$safecontacttime', '$safeagent', '$safeplans', '$safeadded')"; mysql_query($insert) or die("Failed to update database! Please contact the site administrator."); // We also need to craft and email this information. if ($_POST[agent] == "yes") $agent = "Already has an agent"; elseif ($_POST[agent] == "no") $agent = "Has no agent"; elseif ($_POST[agent] == "miller") $agent = "Plans to use The Jon Miller Team"; else $agent = "Still Needs an Agent"; $email = "$_POST[first] $_POST[last] has requested financing information from the $locale $extension Miller Team website.\n \n Name: $_POST[first] $_POST[last]\n Address: $_POST[street], $_POST[city], $_POST[state], $_POST[zip]\n Email: $_POST[email]\n Home Phone: $_POST[homephone]\n Work Phone: $_POST[workphone]\n Mobile Phone: $_POST[mobilephone]\n Best time to contact: $_POST[contacttime]\n Agent: $agent\n \n This person plans to $_POST[plans] a home.\n \n This information has been stored in the database if it needs to be retrieved at a later time."; //echo $email; mail("jon@millerhome.us", "Miller Team Financing Request", $email); mail("cindischiel@nwfinancialchoices.com", "Miller Team Financing Request", $email); // Close it up. Successful completion of form. ?>
| Home Financing Information |
|---|
|
Thank you for submitting your information. We will contact you by phone or email shortly.
Click here to return to the Jon Miller Team home page. |
| Home Financing Information |
|---|
|
The Jon Miller Team members submit all buyer offers with a mortgage pre-approval letter. When you are pre-approved, sellers will find your purchase offer to be more favorable than a prequalification letter. Sellers weigh offers based on the strength of the buyer's financial capacity to actually complete the transaction. A pre-approval letter tells the seller that you can in fact buy the home! This is the strongest position a buyer can be in other than all cash.
Cindi Schiel, our preferred loan officer, will help you find a home loan and provide you with a pre-approval letter. Cindi works with major lenders and will help you to find the best interest rate.
"The Seattle area is my home and I would love to help make it yours! Whether you are interested in a fixed rate mortgage, an ARM, an interest-only loan, a zero-down loan, or if you're self-employed, I can create a loan package perfectly suited to your individual circumstances. With lots of personal attention to every question and detail, I'll guide you through the entire loan process. Call me today to get pre-approved so you can start shopping for the home you've always dreamed of!"
Loan Officer $financial_error \n"; ?> |