You are here: Re: stripslashes vs quotes « PHP Programming Language « IT news, forums, messages
Re: stripslashes vs quotes

Posted by Sergei Riaguzov on 07/24/07 11:10

On Tue, 24 Jul 2007 13:04:07 +0200, Rik wrote:

>> So I should just use htmlspecialchars(), not htmlentities() on strings
>> from POST right?
> If you want to display them as normal text, indeed. If you want to allow
> HTML then no.
No it should be just text. I ended up in:

htmlspecialchars(stripslashes($_POST["blabla"]), ENT_QUOTES);

Also </textarea> is changed to:

&lt;/textarea&gt;

nicely!

Thanx for your answers!

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация