Connecting Tech Pros Worldwide Help | Site Map

Form textarea element

Newbie
 
Join Date: Mar 2007
Posts: 25
#1: Feb 21 '08
In some of my online forms, I have a number of large 'textarea' cfinput elements that I have provided to allow the user to enter large amounts of text onto a MS Access database. I have made the 'textarea' cfinput elements deliberately large to allow the user to enter the text in paragraphs, within the 'textarea' elements using the Return key.

However, when the text is returned to the screen from the database the carriage returns are no longer there and the text appears as one huge, long paragraph.

Does anyone know of a method of storing the position of carriage Returns in a text string, so that when returned from the database the paragraph structure is preserved in the 'textarea' cfinput element.

Regards

Blackmore
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#2: Feb 22 '08

re: Form textarea element


Check the source of the page. I think the returns are there, but they need to be converted, i.e. turned into "\n". I think the characters to match and replace are #Chr(10)##Chr(13)#.
Reply