HTML codes in a textarea

liunx

Guest
Hi,<br />
here is my question.<br />
<br />
I have a text area in my administrator section so that the administrators can write in News. I store these in a database...<br />
I would like to be able to put HTML code in the textarea. So if he wants to put some words in bold, he`ll be able to do it with HTML...<br />
Is it possible???:confused: <br />
<br />
thank you<!--content-->Perhaps you should use an iframe instead. this then displays a new html page inside the box, so there needn't be very much code in the new page.<!--content-->Did you want formatting to actually be in the textarea or is this more a place for a section of text to be inputted to a DB with formatting and then written out somewhere else?<!--content-->I want the formatting to be shown on another page...<br />
not in the textarea. The textarea is only for the administrators. I would like him to be able to format text...<!--content-->well then you can just put the regular html tags in the text area. when you pull it out, the html should already be rendered and therefore your text would be formatted how you want it.<br />
<br />
Unless I'm not quite understanding how you're doing all this.<!--content-->OK :eek: <br />
<br />
I was not sure. I didnt even try it..<br />
When you write message in this Forum, you can write HTML and it do not execute it. <br />
<br />
<b>Like I would like to show this in bold</b><br />
<br />
But in my case, I want it format... I`ll just go see if it work.<br />
thank you<!--content-->use "[" and "]" instead e.g. <br />
<br />
like this<br />
<br />
using caps<br />
<br />
<!-- m --><a class="postlink" href="http://forums.webdeveloper.com/misc.php?s=&action=bbcode">http://forums.webdeveloper.com/misc.php ... ion=bbcode</a><!-- m --><!--content-->YOU HAVE WRITE COMAND SQL WITH TAG <PRE><br />
FOR EXAMPLE: SELECT '<PRE>'||table.text||'</PRE>' FROM table<!--content-->
 
Back
Top