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!
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.
Try wrapping the field data in a <pre>.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)