if(sizeof($_POST)==0) { $action=0; }
else {
db_call();
$action=1;
$one=intval($_POST['one']);
$two=intval($_POST['two']);
$three=intval($_POST['three']);
$four=intval($_POST['four']);
$five=intval($_POST['five']);
$ip=$_SERVER['REMOTE_ADDR'];
$sql="INSERT INTO survey VALUES('',$one,$two,$three,$four,$five,'$ip',NOW())";
$result=mysql_query($sql);
if(!$result) { "BAD SQL INSERT"; }
$message="A visitor to your site has filled out the customer survey. Here are the results:\n\n";
$message.="1. Please rate the quality in which your garment(s) was/were cleaned.\n";
$message.=rating($one)."\n\n";
$message.="2. Please rate the quality in which your garment(s) was/were pressed.\n";
$message.=rating($two)."\n\n";
$message.="3. Please rate the service you received from the counter service representative.\n";
$message.=rating($three)."\n\n";
$message.="4. Please rate the appearance of the location at which you picked up your garment(s).\n";
$message.=rating($four)."\n\n";
$message.="5. What would be your overall rating in your experience at Crown Cleaners?\n";
$message.=rating($five)."\n\n";
send_email("don@crowncleaners.com","administrator@crowncleaners.com","Crown Cleaners | Customer Survey",$message);
}
Crown Cleaners, Knoxville, TN
When you look good, we look good.
Please rate your experience at Crown Cleaners! All survey results are anonymous.