phalanx101 Posted February 4, 2007 Share Posted February 4, 2007 Hi My brief is pure php guestbookm, using a txt file as storage... I have thus far managed to create a simple guestbook which you can enter comments in. However implimenting anything futher has met with failure. swearword filter, or even detecting the user not entering all the fields doesn't work... function antiSwear($userComment) { // example array, possible to link to text file so that code is cleaner $swearWords = array("fuck","shit","dickhead","fart"," foul "); $newcomment = str_replace($swearWords,"****",$userComment); return $newComment; Any tips regarding this? As most examples are mySQL. Thanks Link to comment https://forums.phpfreaks.com/topic/37081-guestbook-txt-file/ Share on other sites More sharing options...
KrisNz Posted February 5, 2007 Share Posted February 5, 2007 My only tip at this stage would be not to include profanity in your question, however unintentional it may be Link to comment https://forums.phpfreaks.com/topic/37081-guestbook-txt-file/#findComment-177125 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.