function clean_string($string)
{
$bad = array("content-type","bcc:","to:","cc:","href");
return str_replace($bad,"",$string);
}
if(isset($_POST['firstname']))
{
$url="epoxygarageflooring.com";
$client="Sunset Flooring";
$email=filter_var($_POST['email'],FILTER_SANITIZE_EMAIL);
$phone1=cs($_POST['phone1']);
$firstname=cs($_POST['firstname']);
//$lastname=cs($_POST['lastname']);
$message=cs($_POST['message']);
// $email=$_POST['email'];
// filter_var($_POST['homepage'], FILTER_SANITIZE_URL);
//$promocode="LOS";
//$border=$_POST['border'];
//$email = stripslashes($email);
//$email = strip_tags($email);
/*
$intlist="";
if(!empty($_POST['heard']))
{
foreach($_POST['heard'] as $int)
{
$intlist = "$int,$intlist";
}
}
*/
$to = "modelstar2005@yahoo.com";
$from = "noreply@$url.com";
$email_exp = '/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/';
if(!preg_match($email_exp,$to))
{
$errorMsg .= 'The Email Address you entered is not valid.
';
}
$headers = "From: noreply@$url.com\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
$message = "