> What you had suggested didn't work as I hadn't scoped the variables so I got a > not defined error message when I tried > <cfoutput>#variables["namefirst" & i]#</cfoutput>
You can use whatever scope the variables are in, though: #form["namefirst" & i]# > I tried <cfoutput>#["namefirst" & i]#</cfoutput> > but that didn't work. Right. The brackets indicate membership in a structure, but you didn't specify the structure structure[key] Variable scopes are exposed as structures. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349719 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm