> I can't get the loop to work > > <cfloop index = "i" from = "1" to = "50"> > <input type="hidden" name="namefirst#i#" > value="<cfoutput>#'namefirst' & i#</cfoutput>" /> > </cfloop>
What is this supposed to output? <cfoutput>#'namefirst' & i#</cfoutput> If you want to output the value contained in a variable whose name consists of the string "namefirst1", "namefirst2", etc, here's one way to do it: <cfoutput>#variables["namefirst" & i]#</cfoutput> 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:349698 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm