Hey All,
I'm pretty new to PHP and mySQL and have had to try and learn it in 24 hours. I'm making a pen-pals database and everything works so far. There's only one problem...
I need to know how I can filter out swear words from a submitted form field before it gets added to the database.
So if someone entered "This site is crap" in a form, how would I change "crap" to a "*" for example? And I would like to be able to change a range of different swear words such as ****, ******* etc.... (Its a site for kids) :-)
I've seen posts regarding changing HTML tags and email addresses, but nothing on swear words :-(
Thank you SO much in advance! This bugger is really giving me a brain ache
Cheers,
Anthony




Bookmarks