Vbcrlf At End Of Textarea Comments Leads To Problems

An important thing to mention here is that when this data goes into my database table i'm using the UPDATE function to modify pre-existing records in the database.

The form that contains my textarea also populates the textarea with the current data from the database so when I submit data, when the page refreshes I should see, in the textarea, the data that I just submitted.

Another things worth mentioning is that when I UPDATE this information in the database, the content from the textarea goes through a instances of the replace() function. There is one in particular that I need but is causing problems:

strTextInput = Replace(strTextInput,chr(13) & chr(10),"<br />")

when the data from the textarea contains a line break I want that to become a break tag in the database. This works well EXCEPT for a line break that seems to always exist at the end of the text in the textarea when I submit my form to be processed. This trailing line break exists regardless of any attempts. If I have: Code:

View Replies