www.webdeveloper.com
Results 1 to 3 of 3

Thread: textarea, <BR>tag, DB store, <TD>

  1. #1
    Join Date
    Apr 2004
    Posts
    5

    textarea, <BR>tag, DB store, <TD>

    i input something text include chr(13) into TEXTAREA tag, and then, i store them into a LONG VARCHAR field.

    when i retrieve the text from DB2 database, and display them with TEXTAREA tagŁ¬all seem OK, what i input what i retrieved. but when i put them text into a TD tag, it's awful that every line of text has not been separated with chr(13) or BR tag.

    i don't know why it's different result between displaying with TEXTAREA and TD tag?

    sorry, my english is so poor. i dont know whether i can express my meaning exactly.

    Thank you very much for your help!

  2. #2
    Join Date
    Jan 2004
    Location
    Melbourne, Australia
    Posts
    5,298
    I dont th8ink I understand correctly. But I will have a go!

    You may want to replace the <br> tags with \n. Text Areas dont interpret HTML tags so you will have to use the \n escape sequence to create line breaks.

    Regards.

  3. #3
    Join Date
    Nov 2003
    Location
    Jerryville, Tejas
    Posts
    11,715
    Try wrapping the field data in a <pre>.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles