On 7/16/01, Megan Cytron penned:
>Here's my code:
>
><cfset textoutput="
> Order: #getMaxOrderID.MaxOrderID#
>
><CFLOOP INDEX="loopcount" From="1" To="#ArrayLen(session.cart)#">
> ITEM CODE: #session.cart[loopcount][3]#
> VARIETY: #session.cart[loopcount][1]#
> QUANTITY: #session.cart[loopcount][4]#
></cfloop>
>
>">
>
><CFFILE ACTION="Write"
> FILE="E:\websites\foo.txt"
> OUTPUT="#textoutput#">
>
>I know I've been down this road before... is it possible to run
>CF tags within CFFILE? Am I missing something really simple?
I don't believe you can place cf tags inside of ANY cf tags. Try
something like this:
<cfset textoutput="Order: #getMaxOrderID.MaxOrderID#
________">
<CFLOOP INDEX="loopcount" From="1" To="#ArrayLen(session.cart)#">
<cfset textoutput = textoutput & "ITEM CODE:
#session.cart[loopcount][3]#
VARIETY: #session.cart[loopcount][1]#
QUANTITY: #session.cart[loopcount][4]#
________">
</cfloop>
--
Bud Schneehagen - Tropical Web Creations
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
ColdFusion Solutions / eCommerce Development
[EMAIL PROTECTED]
http://www.twcreations.com/
954.721.3452
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists