if(sizeof($_POST)==0) { $action=0; } else { $name=trim(strip_tags($_POST['name'])); $email=trim(strip_tags($_POST['email'])); $comments=trim(strip_tags($_POST['comments'])); if(valid_email($email) && $comments!="") { $action=1; $subject="Crown Cleaners | Visitor Comment"; $message="$name has left the following comment on your site via the Don's Corner page:\n\n"; $message.=$comments; send_email("don@crowncleaners.com",$email,$subject,$message); } else { $action=2; } } ?>
|
|
|
|
|
|
|
|
|
|
|