I think this syntax will work: Form["Resolution" & i] (or whatever generates a 
string that matches the field name on the previous age)

-----Original Message-----
From: Paul Henderson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 1:10 PM
To: CF-Talk
Subject: Looped cfform unique variable names?


Maybe I'm going about this the wrong way but, I'm building a shopping cart
and for the checkout page I've looped a cfform because for each item the
user has to specify the same 3 values, for example Resolution.

Note the textbox includes the looped ItemNum in the name to make it's name
unique.

<cfinput type="Text" name="Resolution#GetItems.ItemNum#">

My problem is on the submit page, how do I reference Form.Resolution001
(which is really #Form.ResolutionGetItems.ItemNum#),  and so on without
getting a syntax error? Can I use something other than #s around the inside
variable?

I basically need to know the syntax to reference a variable that has another
variable built into the name, if that makes any sense?

Any ideas?

Thanks
-Paul




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

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

Reply via email to