Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
September 6, 2006, 9:11 am
rate this thread
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.
Re: entering html and php into a db and display this in a textarea without it being processed as code
Before displaying any data like this you should run it through
htmlentities() to convert chars like "<" to "<". Then it will
display correctly (and, BTW, not cause the code to be processed).
Remove the "x" from my email address
JDS Computer Training Corp.