I guess I would like some sort of code that does not allow more than 1 message/minute from each user.
Unless you really want to keep a registry of recent IPs, that's not really feasible. Search the Web for some free bot-check scripts.
PHP Code:
<?php
// If you do not have permission to use this, use $_POST
// and $_GET as you were doing, BUT remember to check
// if the value is set (i.e. isset($_GET['email'])) before
// gleefully overwriting it.
ini_set('register_globals', 'on');
$message = <<<EOT
$name
EMAIL: $email\n
$text
EOT;
mail("contact@getastranger.com", "Contest", $message, "From: $name <$email>\r\n");
sleep(3);
header("Location: http://www.homepage.com/");
?>
Bookmarks