|
im using php to submit data from an online form to an email address.theres code at the start which is meant to stop spammers sending stuff but one guy keeps sending multiple emails to the address using the form. you cant even link to the page with the form at the momment so how hes doin it i dont know.is there any better code to put a stop to this loser?
this is what iv got justnow
<?
function checkOK($field)
{
if (eregi("\r",$field) || eregi("\n",$field)){
die("Invalid Input!");
}
}
$name=$_POST['name'];
checkOK($name);
$email=$_POST['email'];
checkOK($email);
$comments=$_POST['comments'];
checkOK($comments);
|