0){
if(in_array("injection",$errors)){
print "E-mail injection attempt failed";
}else{
drawForm($errors);
}
}else{
$to="dell@dellwebsites.com";
$subject=$attn;
$message = date("l, F j, Y, g:i a").
"\nAttention: $attn".
"\nMessage: $notes".
"\nFrom: $visitor ($visitormail)\n".
"\nAdditional Info : IP = ".$_SERVER['REMOTE_ADDR'].
"\nBrowser Info: ".$_SERVER['HTTP_USER_AGENT'].
"\nReferral : ".$_SERVER['HTTP_REFERER'];
$from = "From: $visitor <$visitormail>\r\n";
if(mail($to,$subject,$message,$from))
echo "
Thank you
\n
Your message has been sent
\n";
else
echo "
Sorry
\n
There was a problem trying to send your message. Please try again later.
\n";
}
}else{
drawForm();
}
function drawForm($e=array()){
global $visitor, $visitormail,$attn,$notes;
?>
Taste In, Contact Us.
Please fill in the form and we will reply as soon as possible, or alternatively send an e-mail to taste@taste-in.com
The service is yours. Our only stipulation is that it should be entertaining and fun.