> 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?
In your action page, you can reference this: Form["Resolution" & GetItems.ItemNum] Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202606 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

