yup, thats what i just came up with too :) just writing the never mind message!!
thanks anyway... tony <cfif #form["accountft_type_#session.FullReturn[i].id#"]#> <cfset returnResults.account_type = #form["accountft_type_#session.FullReturn[i].id#"]#> <cfelseif #form["accountat_type_#session.FullReturn[i].id#"]#> <cfset returnResults.account_type = #form["accountat_type_#session.FullReturn[i].id#"]#> <cfelse> <cfset returnResults.account_type = 0> </cfif> -----Original Message----- From: Matthew Walker [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 11:16 PM To: CF-Talk Subject: RE: oddity with variables and cfset You can't use cf tags in an expression. You could use Iif(). But most people would simply write <cfif form["accountft_type_#session.FullReturn[i].id#"]> <cfset returnResults.account_type = form["accountft_type_#session.FullReturn[i].id#"]> <cfelseif form["accountat_type_#session.FullReturn[i].id#"]> <cfset returnResults.account_type = form["accountat_type_#session.FullReturn[i].id#"]> </cfif> > -----Original Message----- > From: Tony Weeg [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, 10 September 2002 3:08 p.m. > To: CF-Talk > Subject: oddity with variables and cfset > > > i know this value is a number 0-9 > and for the life of me i cannot figger > out why in the heck this won't work? > > HELP :) > > <cfset returnResults.account_type = > > <cfif #form["accountft_type_#session.FullReturn[i].id#"]#> > #form["accountft_type_#session.FullReturn[i].id#"]# > <cfelseif #form["accountat_type_#session.FullReturn[i].id#"]#> > #form["accountat_type_#session.FullReturn[i].id#"]# > </cfif> > > > > > ...tony > > tony weeg > [EMAIL PROTECTED] > www.revolutionwebdesign.com > rEvOlUtIoN wEb DeSiGn > 410.334.6331 > > ______________________________________________________________________ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists