Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Web Design (WordPress, Joomla, etc.) Blocking the 7 Nasties

  • Abraham Chaffin

    September 10, 2007 at 2:53 am

    I’d do some thing like this

    <?
    $cuss_words=array("word1","word2","word3");
    $message=str_ireplace($cuss_words,"****",stripslashes($_POST["message"]));
    ?>

    Abraham

  • Jake Giddens

    September 10, 2007 at 7:10 pm

    Oh cool. Would this go on the page that’s inserting the message into the database?

    Thanks for your help.

    TheIce Cream Man

  • Abraham Chaffin

    September 10, 2007 at 7:58 pm

    It’s up to you how you want to filter it. You could consider not filtering until you display the contents or if you know that you don’t want to save the words then you can filter before. Either way it will work.

    Abraham

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy