|
Posted by Krustov on 01/25/07 00:10
<comp.lang.php>
<Veco>
<Tue, 23 Jan 2007 17:38:52 +0100>
<ep5dqh$58l$1@ss408.t-com.hr>
> I want to block my users from submitting a string that includes link(s)
> stated using a href=...
>
> probably there's some function in php?
>
> i don't want eregi_replace, I just want the code to check a string in
> variable if there's any a href... if so, then I'll use exit(); or smthng
> else
>
> Thanks for your suggestions!
>
$poop=str_replace("<","",$poop);
$poop=str_replace(">","",$poop);
This means you dont have to exit and you can see what somebody tried to
enter without it working as a hyperlink .
--
www.phptakeaway.co.uk
(work in progress)
Navigation:
[Reply to this message]
|