>Hi guys, > >I've got a problem whereby I'm trying to reference my looped variable in an >SQL statement. > > If I want to check the output of some form variables I output them like so (notice how the looped variable is referenced: #form[t]):
<cfoutput> <cfloop index="t" list="#form.fieldnames#"> <li>#t#=#form[t]# </cfloop> </cfoutput> and as Dave Watts said putting the loop inside the query tag is an option, personally I think that's the best way and is much quicker to. cheers, Andrew. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:203922 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