Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Jul 2005
    Posts
    153
    Thanks
    1
    Thanked 0 Times in 0 Posts

    getting rid of spam

    Hi guys.

    I have made my own forum and i am getting a lot of spam. Please take a look at this bit of code and see if you can help...

    PHP Code:
    <?
    if comment_comment ***** "</a>";// this bit should look at the comment and make sure links arent used, so i need the ***** code.
    {
    echo 
    "please do not use links";
    }
    else
    {
    bla bla // add to database
    }
    ?>
    Last edited by simjay; 11-27-2007 at 10:21 PM.

  • #2
    Senior Coder
    Join Date
    Jul 2005
    Location
    UK
    Posts
    1,051
    Thanks
    6
    Thanked 13 Times in 13 Posts

  • Users who have thanked Pennimus for this post:

    simjay (11-28-2007)

  • #3
    Regular Coder
    Join Date
    Jul 2005
    Posts
    153
    Thanks
    1
    Thanked 0 Times in 0 Posts
    if comment_comment == strpos() '</a>';


    ??

  • #4
    Regular Coder
    Join Date
    Jul 2005
    Posts
    153
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Or is there away to stop links being added to the sql data base???

  • #5
    Senior Coder
    Join Date
    Jul 2005
    Location
    UK
    Posts
    1,051
    Thanks
    6
    Thanked 13 Times in 13 Posts
    I would follow the link I actually posted so you can see how to use the strpos() function


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •