You are here: Re: entering html and php into a db and display this in a textarea without it being processed as code « PHP Programming Language « IT news, forums, messages
Re: entering html and php into a db and display this in a textarea without it being processed as code

Posted by Jerry Stuckle on 12/16/19 11:57

monomaniac21 wrote:
> hi all!
>
> how can i enter html and php into a db and display this within a
> TEXTAREA without it being processed as code? do i need to replace
> characters like <? with something else like say <..? or is there a more
> elegant solution that tells the php parser etc to ignore this section
> as it needs to be processed as text not code.
>
> regards
>
> marc
>

Before displaying any data like this you should run it through
htmlentities() to convert chars like "<" to "&lt;". Then it will
display correctly (and, BTW, not cause the code to be processed).

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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