Form["question"&loopCount]
On 23 Apr 2010, at 21:47, "Gary Strommen" <[email protected]> wrote: > > I have a form for students to take a test. I want to output the > answers using a loop. The test has 5 questions. I am trying to get > the output of FORM.question1, then FORM.question2, etc. > > Thank you in advance > > <cfloop index = "loopCount" from = "1" to = "5" step = "1"> > <cfoutput> > FORM.question#loopCount# = #FORM.question("#loopCount#") > #<br /> > </cfoutput> > </cfloop> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:4999 Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm
