Was able to get this to filter:
.....................
<?
}
$guestbook = stripslashes($message);
$this_is_the_message=$guestbook;
$dirty_words = array("badword1","badword2","badword3");
$message = $this_is_the_message;
foreach ($dirty_words as $word){
     $message = str_replace($word, "****", $message);
}
echo $message;
?>
................
TR




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to