|
Get a Quote';
}
?>
We appreciate your interest in Cutting Edge.
';
}
else {
require("/var/www/vhosts/cuttedge.com/httpdocs/inc/globals.php");
require("/var/www/vhosts/cuttedge.com/httpdocs/inc/common.php");
$db = mysql_connect($host, $user, $password);
mysql_select_db($database, $db);
$systime=time();
$dateoflead=date("Y-m-d",$systime);
$fname=ucwords(htmlentities(specialchar($fname)));
$lname=ucwords(htmlentities(specialchar($lname)));
$add1=ucwords(htmlentities(specialchar($add1)));
if ($add2 !="") { $add2=ucwords(htmlentities(specialchar($add2))); }
$city=ucwords(htmlentities(specialchar($city)));
$fromname = $fname." ".$lname;
$fromaddr = "<".$email.">";
$notified2 = "amera@cuttedge.com";
$toaddress1 = "amera@cuttedge.com";
$toaddress1 = "<".$toaddress1.">";
$notified2 = "<".$notified2.">";
$fromname = $fname." ".$lname;
$fromaddr = "<".$email.">";
$emailsbj = "Cutting Edge Quote/Information Request";
#mail ( "\"Manager\" $notified2", $emailsbj,
mail ( "sliu\@cuttedge.com", $emailsbj,
"
Sign Up : ".stripslashes(htmlentities($fname))." ".stripslashes(htmlentities($lname))." on ".$dateoflead."
Email : ".$email."
Street1 : ".stripslashes(htmlentities($add1))."
Street2 : ".stripslashes(htmlentities($add2))."
City : ".stripslashes(htmlentities($city))."
State : ".$statename."
Country : ".stripslashes(htmlentities($country))."
Zip : ".$zip."
Country : ".$countryname."
Heard From : ".$findus."
-- End --");
$insertstmt = "INSERT INTO leads ( leaddate,fname,lname,company,title,add1,add2,city,state,zip,country,email,phone,product,foundusby,description ) values ( '%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s' )";
if (!mysql_query(sprintf($insertstmt,$dateoflead,$fname,$lname,$company,$title,$add1,$add2,$city,$state,$zip,$country,$email,$phone,$product,$findus,$description ), $db))
{
#echo("Error Found Creating New Lead. Please Contact Webmaster
");
#exit();
}
echo("Thank you $fname, a customer representative will contact you shortly. ");
}
?>
|