define(array(main=>"contact_us.html")); $ft->assign("TP",$tp); if(empty($action)) { $ft->assign("NAME",""); $ft->assign("EMAIL",""); $ft->assign("TEL",""); $ft->assign("MSG",""); } else if($action=="send") { $ok=true; require('include/php-captcha.inc.php'); if(empty($name)||empty($email)||empty($comment)) $ok=false; if (!(PhpCaptcha::Validate($_POST['check_ch']))) $ok=false; if($ok) { //$from=$name." <".$email.">"; //print $from; $headers = "MIME-Version: 1.0\r\n"; $headers.= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers.= "From:".$email."\n"; //$headers.= "Reply-To:".$email."\n"; $message=""; $message.=$comment."\r\n"; if(!empty($phone)) $message.="Phone Number:".$phone."\n"; //mail("office@creditcradsassistance.com", $tp."."."Insurancequotecompared.com Contact Us Page", $message, $headers); mail("cfazakas@wedis.ro", "CreditCradsAssistance.com Contact Us Page", $message, $headers); $ft->define(array(main=>"contact_confirm.html")); } else { $ft->assign("NAME",$name); $ft->assign("EMAIL",$email); $ft->assign("TEL",$phone); $ft->assign("MSG",$comment); } } $ft->parse(mainContent, main); $ft->FastPrint(mainContent); ?>