|
Posted by WeeWillyTonka on 10/06/62 11:29
"Dasdan" <dasdan20_antispam@hotmail.com> wrote in message
news:mn.7c3d7d5a84b62f55.41130@hotmail.com...
> <snip>
:
: 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
:
:
I have taken a look at
http://uk2.php.net/str_replace
I don't think this is what I would need "Then I could be wrong which happens
a lot"
My understanding of this str_replace is to replace one thing with something
else . I
think a better way would be to check the 'comment' some how and if it
contains a
bad word just redirect to a new page .(personalised to we don't like
spammers)
As with (if (!strstr($_SERVER['HTTP_REFERER'], 'somesite.com')) { exit
("Invalid referrer");)
I have no idea how to do this.
The code is not mine I have just botched it abit overtime, for the life of
me I can't remember
who wrote it, possible some one here.
Cheers
WW
Navigation:
[Reply to this message]
|