php codes in textarea

Discussion in 'PHP' started by mehdiali, Jan 12, 2009.

  1. #1
    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
     
    mehdiali, Jan 12, 2009 IP
  2. ads2help

    ads2help Peon

    Messages:
    2,142
    Likes Received:
    67
    Best Answers:
    1
    Trophy Points:
    0
    #2
    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.
     
    ads2help, Jan 12, 2009 IP
  3. webrickco

    webrickco Active Member

    Messages:
    268
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #3
    webrickco, Jan 12, 2009 IP
  4. crath

    crath Well-Known Member

    Messages:
    661
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    100
    #4
    it sounds like ads2help told him what he needs, but im curious what he actually wanted
     
    crath, Jan 12, 2009 IP