I am currently getting spam attacked through my contact form and I don't know how to add a spam question. I just need something like "what is 1+seven"? thanks <?php $name = $_REQUEST['name'] ; $email = $_REQUEST['email'] ; $message = $_REQUEST['message'] ; if (!isset($_REQUEST['email'])) { header( "Location: http://www.site/contact.php" ); } elseif (empty($email) || empty($message)) { header( "Expires: Mon, 20 Dec 1998 01:00:00 GMT" ); header( "Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT" ); header( "Cache-Control: no-cache, must-revalidate" ); header( "Pragma: no-cache" ); ?> <html> <head><title>Error</title></head> <body> <h1>Error</h1> <p> Oops, it appears you forgot to enter either your email address or your message. Please press the BACK button in your browser and try again. </p> </body> </html> <?php } else { mail( "email address", "title", "$message", "From: $name <$email>" ); header( "Location: http://www.site.com" ); } ?> PHP:
You could sign up for http://recaptcha.net/whyrecaptcha.html and install that. It's simple and works well. If you need any help I can do it for you. Sky22