View Single Post
PHP Message Help
Old
  (#1)
Ancient
PodBot MM's Laziest Waypointer
 
Ancient's Avatar
 
Status: Offline
Posts: 1,010
Join Date: Jan 2005
Location: Nebraska, United States of America
Default PHP Message Help - 16-06-2007

I'm trying to fend off spammers in my hosting contact form and I have this idea to help stop it.

In these emails they are sending the form with keywords in it like for example: $badwords.

And I'm trying to make a code for it to search what they wrote and send and if it finds one of the $badwords that it will die();.

What I have is:
Code:
$badwords = array(array('sex', 'porn', 'unknown', 'Unkown', 'geocities', 'tripod', 'http://'));
 
if(in_array(array('sex', 'porn', 'unknown', 'Unkown', 'geocities', 'tripod', 'http://'), $badwords));
How can I hook it up to search the $message for $badwords?


[Web Designer][Waypointer][Gamer]
CFE Games Administrator
[CFE]Games.com
[Never Trust the Untrusted]
  
Reply With Quote