Add signatures?

Discussion in 'PHP' started by le007, Jun 25, 2008.

  1. #1
    Hi all,

    Novice PHPer here.....
    I was asked to help my best friend design a website where people can sign their name on it. Basically like a signature list or whatever. Anyway, I don't even know what to search for in google - I would need some sort of security or validation process so people couldn't write obscenities on it.

    Would a blog do it or? Eh actually I'm lost - hope you can advise.

    Something like this:

    If you looove BMW cars please sign below:
    CLICK HERE TO SIGN

    le007
    james bond
    santy claus
    etc

    THANKS IN ADVANCE:cool:
     
    le007, Jun 25, 2008 IP
  2. alemcherry

    alemcherry Guest

    Best Answers:
    0
    #2
    You may need a simple form with a captcha. Google for guestbook script or something. Or check it hotscripts. This is very basic, but if you dont know how to submit a form, instert into database and query from db, it is hard to explain!
     
    alemcherry, Jun 25, 2008 IP
  3. le007

    le007 Well-Known Member

    Messages:
    481
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #3
    heh,
    thanks for reply..... yeah I do know how to do it in flat files but I don't know how to put a security on it that will allow the admin to post the signature rather than instantly appearing on the page?
     
    le007, Jun 25, 2008 IP
  4. Alex-Z

    Alex-Z Peon

    Messages:
    337
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    can you use two files, one with the new "signatures" and one with the ones approved by the moderator?
     
    Alex-Z, Jun 25, 2008 IP
  5. le007

    le007 Well-Known Member

    Messages:
    481
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #5
    Yeah, good idea - thanks..... I'm tired, that would work - nice one :D
     
    le007, Jun 25, 2008 IP
  6. X.Homer.X

    X.Homer.X Peon

    Messages:
    290
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    couldnt you just get
    if(preg_math(*badwordhere*i $signature))
    {
    do something
    }
    else
    {
    do something else
    }

    (probably not right, dont feel like looking it up right now) but that would keep certain words out.
     
    X.Homer.X, Jun 25, 2008 IP