Ernest Douglas wrote:

>I am using ColdFusion to implement a shopping cart. I have a form to collect 
>name and address and the next page places these values in the database. 
>(rather, is SUPPOSED to place them in a database)Below is the code for getting 
>data from the form and placing data into the database.
>Thank you in advance for any help!
>  
>
James is quite correct - you need to scope your variables.

For other unsolicited help ;)

You don't need the <cfoutput> around the code you've given.  Also, the 
hashes/pound signs are not required in the CFIF or the CFSETs

<cfset shopping.name = form.name>  and <cfif len(form.bphone) eq 0> are 
the slightly cleaner way to call variables in these instances.

Hope that helps.

Regards

Stephen


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:15:870
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to