Forums

This topic is locked

Filter Form Input - Advanced ??

Posted 24 Apr 2004 04:06:01
1
has voted
24 Apr 2004 04:06:01 Aron K posted:
I have a classified ad site, and I just display the user's input on the ad page.

<b>Is there any advanced filters that will prevent someone entering bad scripts on the initial insert page?</b>

i.e.

<pre id=code><font face=courier size=2 id=code>&lt;a href="javascript:evil_function();"&gt;My_Site&lt;/a&gt; </font id=code></pre id=code>

thanks

Replies

Replied 24 Apr 2004 17:23:55
24 Apr 2004 17:23:55 Phil Shevlin replied:
WHat language are you using? php or asp?
Replied 25 Apr 2004 03:19:37
25 Apr 2004 03:19:37 Aron K replied:
PHP
Replied 25 Apr 2004 03:36:55
25 Apr 2004 03:36:55 Phil Shevlin replied:
Might want to look at strip_tags

www.phpbuilder.com/manual/function.strip-tags.php

Reply to this topic