Hi every one i need a textarea(an area with scrollbar) to keep somthings in one of my pages. i wrote ' <textarea> my php codes </textarea>' but this is like this : echo "<table align=center align=center width=98% height=100% dir=rtl>"; echo "<tr bgcolor=#CFCFCD> <td align=center class=head><h2>نام تور</td> <td align=center class=head><h2>موضوع</td> <td align=center class=head><h2>هزینه</td> <td align=center class=head><h2>مکان</td> <td align=center class=head><h2>تاریخ</td> "; HTML: what can i do? thank you in advance
Maybe I can't get what you mean, but i tell from what i understand from your post. Textarea is for editing / forms. If you want to display a scrollable area, use this code instead <div style="width:300px;height:400px;overflow:auto;"> content inside </div> HTML: Remember to set width and height for it.
I use a script to do this. Not only, it gives you the ability to put your HTML, PHP, VB, XML or whatever code you want into TEXTAREA, it also put a nice layout with line numbers on it, with copy and printing capabilities. see an example at: http://www.webrickco.com/article-author-davidc2p-articleid-9-cat-2.html For download and documentation, take a look at: http://code.google.com/p/syntaxhighlighter/ It's very good.