I try not to use paragraphformat() too much. Users usually end up
complaining that their single line breaks become doubles.

I usually input the text from a textarea just as they entered and then
format it on output with #replace(str, "#chr(13)##chr(10)#", "<br>", "ALL")#


-----Original Message-----
From: Keith Gaughan [mailto:[EMAIL PROTECTED] 
Sent: Saturday, November 06, 2004 7:06 PM
To: CF-Talk
Subject: Re: formatting in textarea

Roberto Perez wrote:
> Hi all,
> 
> Quick question on textarea: I have a form with a box where visitors can 
> type comments. The input goes to an Access database with a "memo" field.
My 
> problem is, if they type one or more carriage returns, the text in the 
> "memo" field does not reflect that, and obviously when the comments are 
> displayed on the browser they look like one long paragraph instead of 
> several shorter ones (separated by carriage returns) as the visitor
intended.
> 
> Any solutions for this?

The ParagraphFormat() function might be what you're looking for.

-- 
Keith Gaughan, Developer
Digital Crew Ltd., Pembroke House, Pembroke Street, Cork, Ireland
http://digital-crew.com/




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183567
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to