October 8th, 2003, 12:15 PM
Join Date: Sep 2003
Location: London, Ontario
Time spent in forums: < 1 sec
Reputation Power: 0
When the user clicks submit it look like it takes them to mailform.cfm, which I can't see, but assume cycles through the products and checks if they are 0 or not.
First, I would add default='0' to all the "Product" inputs. Without defaults they will be null and that could mess things up when comparing them to zero.
Then, in the mailform.cfm I would use something like:
<cfmail from="theirEmail" to="yourEmail" subject="ORDER">
<cfloop from='1' to='Number of Product' index='i'>
<cfset tmp = "Form.Product" & i>
<cfif #tmp# gt 0>PRINT OUT INFO FROM POSITION i</cfif>
Not sure if this is what you are looking for, but let me know if you need more info, or something along different lines.