Hello,
I'm using a form on my page to update information in my database. My problem is, every time I update, a CRLF is added to the end of each string originating from a textarea tag.
On a different page, I retrieve the information from the database and use an html table to present it. I use:
to replace all the CRLF's to <br>, because sometimes I have more then one paragraph in a field and I want the new paragraph to start on a new line. The problem is, all those extra CRLF's at the end of the fields become <br>'s themselves, so I get a bunch of empty lines at the end of each cell.
Ideas, anyone?
Thanks, Yael
I'm using a form on my page to update information in my database. My problem is, every time I update, a CRLF is added to the end of each string originating from a textarea tag.
On a different page, I retrieve the information from the database and use an html table to present it. I use:
Code:
<%=replace(rs("ItemAbstract"),chr(13) & chr(10), "<br>")%>
to replace all the CRLF's to <br>, because sometimes I have more then one paragraph in a field and I want the new paragraph to start on a new line. The problem is, all those extra CRLF's at the end of the fields become <br>'s themselves, so I get a bunch of empty lines at the end of each cell.
Ideas, anyone?
Thanks, Yael