Posted by Marek Kilimajer on 06/03/05 03:28
Sebastian wrote:
> what is a safe way to clean a post/get before echoing it.
> example. input form, user enters some text, hits enter.
>
> .. next page i echo what they entered.
> right now i just run the variables passed by htmlentities() which
> preseves any html. is that acceptable?
>
You might also want to use stripslashes() if magic_quotes_gpc is on, so
the data is not double escaped.
Navigation:
[Reply to this message]
|