Profanity Filter

From: Date: Fri, 19 Jan 2001 18:58:38 +0000
Subject: Profanity Filter
Groups: php.general 
Request: Send a blank email to php-general+get-35690@lists.php.net to get a copy of this message
Hi, I`m trying to setup a little profanity filter for a client of mine just wondered if anyone could offer some advice on how best to handle it. I was thinking of going along these lines... $filter="moron"; if($Name==$filter) { printf...Javascript you can`t use that etc } Name is passed from a form, the problem is there are going to be quite a few words, so how is the best way to store these words. Something like this?? $filter="moron idiot pratt" And if $Name was sent through as "moron pratt" would it still pick it up?? TIA for any help Ade

« previous php.general (#35690) next »