Bracket syntax!

What I usually use in this situation is this

<cfoutput>#form['Resolution' & itemCounter]#</cfoutput>

HTH

--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning

....-----Original Message-----
....From: Paul Henderson [mailto:[EMAIL PROTECTED]
....Sent: Wednesday, April 13, 2005 10:10 AM
....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
....
....
....

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:202604
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to