Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question about cfcontent

Status
Not open for further replies.

lws

Programmer
Joined
May 6, 2001
Messages
14
Location
HK
Hi,

I want to output some datat in a text file by using cfcontet.
My code is as following:
<cfset header = &quot;name,ID&quot;>
<cfset value = &quot;lws,1&quot;>
<cfcontent type=&quot;text/plain&quot;>
<cfoutput>
#header#
#value#
</cfoutput>

When I view the page I found that the data presented with one line rather than two line.(e.g : name,ID lws,1)
Can anyone tell me how to make the output of the above code into separate line?

Thx
 
try seperating them:

<cfoutput>
#header#
</cfoutput>
<cfoutput>
#value#
</cfoutput> Randall2nd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top