> Excellent - thanks Dave.  Do you know why it was to be set as
> a variable first?  If I just type it within the textarea tag -
> it just gets displayed. Oh well - it works now.

It doesn't have to be set as a variable first; I do that for convenience. If
you're doing something like this:

<cfset Sentence1 = "My text goes here.">
<cfset Sentence2 = "I'd like this sentence to be on the second line.">

<cfoutput>
<textarea name="foo">#Sentence1# #Sentence2#</textarea>
</cfoutput>

you could do this:

<cfset Sentence1 = "My text goes here.">
<cfset Sentence2 = "I'd like this sentence to be on the second line.">

<cfoutput>
<textarea name="foo">#Sentence1##Chr(13)##Chr(10)##Sentence2#</textarea>
</cfoutput>

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to