Reply
anti spam code
Old 05-10-2006, 05:48 AM anti spam code
Novice Talker

Posts: 7
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);
pellio is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 05-10-2006, 09:00 AM Re: anti spam code
mtishetsky's Avatar
King Spam Talker

Posts: 1,120
Name: Mike
Location: Mataro, Spain
Why do you think this won't let him send emails to you?

I think you need to add some kind of captcha script to your form. You should have seen it, the picture with curved letters or digits that can only be read by human.
__________________
Free Mobile Phone Themes

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Reply     « Reply to anti spam code
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.10559 seconds with 12 queries