Skip to main content
June 5, 2008
Question

cfloop help

  • June 5, 2008
  • 1 reply
  • 212 views
I am trying to put in a feature in my emailer page that shows that if form.item1 is checked then print the information

Item Information:
Item ##:
Quantity:

for item 2 however I can't get the code right can you look at what I have and tell me what's wrong?
    This topic has been closed for replies.

    1 reply

    Inspiring
    June 5, 2008
    among other things, your loop index is i and you are referring to a variable called t.
    What happens when you do this?

    <cfloop index="i" from="1" to="29">
    <cfif isDefined("form.item#i#")>
    Item #i# exists <br />

    <cfelse>
    Item #i# does not exist <br />

    </cfif>
    </cfloop>