|
Posted by Dasdan on 10/22/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]
|