I want to take a submitted data and check to see if a few words are found in it, if they are I would like to mark this data as a spam message,
Example of my code
if($subject!=''){
$subject=FilterALLHTML($subject);
$bulletin=FilterHTML($bulletin);
$bulletin=lineBR($bulletin);
}
I want to check $subject and $body for the words 'votes' 'v o t e s' 'vote' 'v o t e'
and if any of them are found then I would like to make a varibable $spam = 1
Any help greatly appreciated
Would something like this work?
http://us2.php.net/manual/en/function.strpos.php
if so how could I amke it into a function