Errors found: '; $ErrorPage = str_replace('', $ErrorList, $ErrorPage); $ErrorPage = str_replace('', $FTGfirstname, $ErrorPage); $ErrorPage = str_replace('', $FTGlastname, $ErrorPage); $ErrorPage = str_replace('', $FTGstreet, $ErrorPage); $ErrorPage = str_replace('', $FTGcity, $ErrorPage); $ErrorPage = str_replace('', $FTGstate, $ErrorPage); $ErrorPage = str_replace('', $FTGzipcode, $ErrorPage); $ErrorPage = str_replace('', $FTGphone, $ErrorPage); $ErrorPage = str_replace('', $FTGemail, $ErrorPage); $ErrorPage = str_replace('', $List_contacttime, $ErrorPage); $ErrorPage = str_replace('', $List_remodeling_project, $ErrorPage); $ErrorPage = str_replace('', $FTGproject_start_time, $ErrorPage); $ErrorPage = str_replace('', $FTGproject_completion_time, $ErrorPage); $ErrorPage = str_replace('', $FTGbudget, $ErrorPage); $ErrorPage = str_replace('', $FTGown_home, $ErrorPage); $ErrorPage = str_replace('', $FTGage, $ErrorPage); $ErrorPage = str_replace('', $FTGinsurance_claim, $ErrorPage); $ErrorPage = str_replace('', $FTGproject_description, $ErrorPage); $ErrorPage = str_replace('', $FTGsubmit, $ErrorPage); $ErrorPage = str_replace('', $FTGreset, $ErrorPage); echo $ErrorPage; exit; } # Email to Form Owner if ($_SESSION["code"]=="ok") { $_SESSION["code"]=""; $emailSubject = FilterCChars("Contact Form"); $emailBody = "First Name : $FTGfirstname\n" . "Last Name : $FTGlastname\n" . "Street : $FTGstreet\n" . "City : $FTGcity\n" . "State : $FTGstate\n" . "Zip code : $FTGzipcode\n" . "Phone : $FTGphone\n" . "Email : $FTGemail\n" . "Contact Time : $List_contacttime\n" . "Remodeling Project : $List_remodeling_project\n" . "Project Start Time : $FTGproject_start_time\n" . "Project Completion Time : $FTGproject_completion_time\n" . "Budget : $FTGbudget\n" . "Own Home : $FTGown_home\n" . "Age : $FTGage\n" . "Insurance Claim : $FTGinsurance_claim\n" . "Project Description : $FTGproject_description\n" . "Submit : $FTGsubmit\n" . "Reset : $FTGreset\n" . ""; $emailTo = 'Joe '; $emailFrom = FilterCChars("ContactForm@joe.com"); $emailHeader = "From: $emailFrom\n" . "MIME-Version: 1.0\n" . "Content-type: text/plain; charset=\"ISO-8859-1\"\n" . "Content-transfer-encoding: 8bit\n"; mail($emailTo, $emailSubject, $emailBody, $emailHeader); } header("Location: contact-thankyou.html"); ?>