Thanks, Ryan...
The CFOUTPUT's were causing the problem. I guess I just had it in my head
that the
variables would not be processed correctly without the CFOUTPUT's there.
Never thought to take them out...I guess it's kinda like #'s: For so many
of us
it's "the more the merrier!"
Oh, well...live and learn.
And, yes, I do read up on the syntax quite a bit...I had my nose in a book
all day trying
to sort out the issue...but sometimes you just can't find what you need
without experiencing it...
and with help from friends...
Thanks,
Rick
> -----Original Message-----
> From: Ryan Emerle [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 18, 2003 4:00 PM
> To: CF-Talk
> Subject: RE: Can anyone explain why this code is behaving like it is?
>
>
> You are adding the string "<CFOUTPUT>#Evaluate(Form.S4x6 *
> 3.95)#</CFOUTPUT>" as the value. Which will be something like:
>
> "<CFOUTPUT>11.85</CFOUTPUT>"
>
> You probably just cant seen the CFOUTPUT tags in the browser
> because they are seen as tags.
>
> Change the code to this:
> <CFSET Temp = QueryAddRow(Session.Cart)>
> <CFSET Temp =
> QuerySetCell(Session.Cart,"PhotoFileName",Form.PhotoFileName)>
> <CFSET Temp = QuerySetCell(Session.Cart, "Quantity",Form.S4x6)>
> <CFSET Temp = QuerySetCell(Session.Cart, "Size", "4 x 6")>
> <CFSET Temp = QuerySetCell(Session.Cart,
> "Amount",Evaluate(Form.S4x6 * 3.95))>
>
> And, i'd recommend reading up on your CF syntax.
>
> -----Original Message-----
> From: Rick Faircloth [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 18, 2003 3:39 PM
> To: CF-Talk
> Subject: Can anyone explain why this code is behaving like it is?
>
>
> This stuff is driving me crazy! All day spent to get almost
> nowhere...
>
> Anyway...(deep breath)...
>
>
> Excerpts from the code:
>
> The formfield:
>
> <SELECT Name="S4x6" Class="TextInput01">
>
> <Option Value="0" Selected>0</Option>
> <Option Value="1">1</Option>
> <Option Value="2">2</Option>
> <Option Value="3">3</Option>
> <Option Value="4">4</Option>
> <Option Value="5">5</Option>
> <Option Value="6">6</Option>
> <Option Value="7">7</Option>
> <Option Value="8">8</Option>
> <Option Value="9">9</Option>
> <Option Value="10">10</Option>
>
> </SELECT>
>
>
>
> Sent to another page for processing:
>
>
>
> <CFLOCK Scope="Session" Type="Exclusive" TimeOut="5">
>
> <CFSET Session.Total = 0>
>
> <CFIF Form.S4x6 is not "0">
>
> <CFSET Temp = QueryAddRow(Session.Cart)>
> <CFSET Temp = QuerySetCell(Session.Cart, "PhotoFileName",
> "<CFOUTPUT>#Form.PhotoFileName#</CFOUTPUT>")>
> <CFSET Temp = QuerySetCell(Session.Cart, "Quantity",
> "<CFOUTPUT>#Form.S4x6#</CFOUTPUT>")>
> <CFSET Temp = QuerySetCell(Session.Cart, "Size", "4 x 6")>
> <CFSET Temp = QuerySetCell(Session.Cart, "Amount",
> "<CFOUTPUT>#Evaluate(Form.S4x6 * 3.95)#</CFOUTPUT>")>
>
> <CFOUTPUT>#DollarFormat(Session.Cart.Amount)#</CFOUTPUT><br>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ~~~~~~~~|
> Message: http://www.houseoffusion.com/lists.cfm?link=i:4:137591
> Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
> Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
> Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=708.628.4
This list and all House of Fusion resources hosted by CFHosting.com. The
place for dependable ColdFusion Hosting.
http://www.cfhosting.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm?link=i:4:137629
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Get the mailserver that powers this list at
http://www.coolfusion.com