Form textarea element

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Blackmore
    New Member
    • Mar 2007
    • 25

    Form textarea element

    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
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    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(1 3)#.

    Comment

    Working...