You are here: Re: bad word list 4 guestbook « PHP Language « IT news, forums, messages
Re: bad word list 4 guestbook

Posted by Dasdan on 11/09/08 11:29

> "Dasdan" <dasdan20_antispam@hotmail.com> wrote in message
> news:mn.7a637d5a19d7752e.41130@hotmail.com...
> <snip>
>> simple example of a bad word filter::
>>
>> ....
>> ob_start();
>> //do your page processing here
>> //$this->pageController->handleRequest($request);
>> $response = ob_get_contents();
>> ob_end_clean();
>>
>> //do some filtering
>> //TODO : get wordlist from DB, process wordlist in a while loop
>>
>> $response = str_replace('casino', 'oops2', &$response);
>> print $response;
>>
>>
>> --
>>
>> Kevin Wood AKA Dasdan
>> http://www.dasdan.be
>>
> Hi sorry to be thick ... I am
> How can I add that to my form,I have uploaded it as a html page here
> http://myweb.tiscali.co.uk/01702/help/
> If you could take the time to have a look it would be most helpfull.
>
> Cheers
> WW

hey,

your code looks good at first glance

you don't need the ob_start ... stuff for validating input,

you need to use it in you output page.




--

Kevin Wood AKA Dasdan
http://www.dasdan.be

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация