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
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!
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?
can you use two files, one with the new "signatures" and one with the ones approved by the moderator?
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.