textarea

Discussion in 'PHP' started by baris22, Jan 19, 2009.

  1. #1
    Hello,

    I am trying to display some content in the text field.
    the problem i have got is: it is displaying html tags the way it is in the database:

    it is showing codes instead of the output

    
    <strong>test<strong><br /> <br /> <img src="http://img.photobucket.com/albums/v649/llamaboy2/111.png" alt="Image" title="Image" border="0" /><br />
    
    PHP:
    What can i do to show the output not the codes?

    this is what i am using:

    
    <td><textarea name="fullpage[]" cols="140" rows="16" id="fullpage"><?=stripslashes ($rows['fullpage']) ?></textarea></td>
    
    PHP:

     
    baris22, Jan 19, 2009 IP
  2. solarmoo900

    solarmoo900 Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    any reason your using a textarea...generally stuff is put inside there so it doesn't render

    you mine as well just use a div with a border. if you were using it for the scroll bar, just add a height to the div and then use css to set overflow: auto
     
    solarmoo900, Jan 19, 2009 IP
  3. mendin

    mendin Active Member

    Messages:
    31
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    93
    #3
    I suggest you use tiny mce url : tinymce.moxiecode.com. It can hold html tag.
     
    mendin, Jan 19, 2009 IP