$val) { $val=trim($val); // Stripslashes if (get_magic_quotes_gpc()) { $val = stripslashes($val); } /*// Quote if not integer if (!is_numeric($val)) {*/ $val = addslashes($val); //} $trim_arr[$key]=$val; } $message=''; foreach($trim_arr as $key=>$val) { $message.=""; if(strtolower($key)!="submit" && !(strtolower($key)==strtolower("TREF_email") || strtolower($key)==strtolower("TREF_email_id"))) { $k=explode('TR_',$key); if(count($k)==1) $message.='"; else $message.='"; } $message.=""; } $message.="
You have received a new enquiry from '.SITENAME.'
Details are as under:

'.ucwords(str_replace('_',' ',$k[0])).' : '.$val."
'.ucwords(str_replace('_',' ',$k[1])).' : '.$val."
"; } else if(strtolower($key)==strtolower("TREF_email") || strtolower($key)==strtolower("TREF_email_id")) { $message.='
Email : '.$val."
"; @mail($to,$subject,$message,$headers); $submit=1; }?>





alert('You have submitted your details successfully. Thanks!');window.location='".$_SERVER['REQUEST_URI']."';"; } ?>