For handling these types of issues, I always use this custom tag and it seems to work great.
http://www.systemanage.com/cff/textareaformat_help.cfm Give it a go. ----- Original Message ----- From: "Graham Faulkner" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 05, 2002 9:07 AM Subject: [CFTALKTor] using HTML in <TEXTAREA> of <CFFORM> > Hi there, > > I'll try to explain this without getting myself, or you, too confused... =) > > I have an online admin tool for my client for their calendar of events. > They are able to enter the details for the event into a <textarea> field in > the <cfform>. The <textarea> corresponds to a Memo-type field in an Access > 2000 database. The information saved in the db field is outputted on the > website using #ParagraphFormat(Description)# so that all paragraph breaks, > etc. are retained. > > However, when I enter in HTML code (e.g. email addresses using <a > href="mailto:blahblah">) into the <textarea> it does something funny when I > go back in a second time to re-edit the information. It will copy some of > the text and place it before the previously existing text. > > For example, if I entered the following > > PARAGRAPH START... This is some sample text. Here is a website you > should look at: <a href="url here" target="_self">url</a>. You should also > email the friendly people at CFUG - click <a > href="mailto:cftalk?subject=this is a test">here</a>. This is some more > sample text. > > What would happen is that it looks something like this when I go back in to > edit it again (copies some of the text and places it at the beginning): > > url here" target="_self">url</a>. You should also email the friendly > people at CFUG - click <a href="mailto:cftalk?subjet=this is a > test">here</a>. PARAGRAPH START... This is some more sample text. This is > some sample text. Here is a website you should look at: <a href="url here" > target="_self">url</a>. You should also email the friendly people at CFUG - > click <a href="mailto:cftalk?subject=this is a test">here</a>. This is some > more sample text. > > What can I do to stop this, but still ensure that they can enter in HTML > code if desired. If they type in plain text, it works fine. It's the HTML > code that's ruining the party. =) I tried #HTMLCodeFormat(Description)# in > the <textarea> but that didn't seem to do the trick. Any suggestions would > be gratefully appreciated. > > Blessings, > > Graham > > > ------------------------------------------------------------ > Graham Faulkner, BBA > President > Global Audience Communications > > Web design with YOUR world in mind! > > Web: http://www.GlobalAudienceCommunications.com > Email: [EMAIL PROTECTED] > > Tel./Fax: 519-880-9184 > Cell: 519-496-0887 > > - > You are subscribed to the CFUGToronto CFTALK ListSRV. > This message has been posted by: "Graham Faulkner" <[EMAIL PROTECTED]> > To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/ > Manager: Kevin Towes ([EMAIL PROTECTED]) http://www.CFUGToronto.org/ > This System has been donated by Infopreneur, Inc. > (http://www.infopreneur.net) > - You are subscribed to the CFUGToronto CFTALK ListSRV. This message has been posted by: "Bill Sourour" <[EMAIL PROTECTED]> To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/ Manager: Kevin Towes ([EMAIL PROTECTED]) http://www.CFUGToronto.org/ This System has been donated by Infopreneur, Inc. (http://www.infopreneur.net)
