told you it'd be something simple - thanks steve :)
On Nov 19, 4:15 pm, "Steve Onnis" <[EMAIL PROTECTED]> wrote: > Chris > > All you need to do is use the variable as a string like > > <cfif isdefined("form.test_#i#")> > yes > </cfif> > > Steve > > -----Original Message----- > From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf > > Of silverbeetle > Sent: Monday, 19 November 2007 4:14 PM > To: cfaussie > Subject: [cfaussie] isdefined problem > > I have some dynamically generated form fields which i loop through after > submission. > > Only problem is when i try to use isdefined, i get an error like this: > > "Parameter 1 of function IsDefined, which is now "form["test_1"]", must be a > syntactically valid variable name." > > Here's a stripped down example of the problem (without the looping): > > <cfparam name="form.test_1" default="1" /> > > <cfset i = 1 /> > > <cfif isdefined("form['test_#i#']")> > yes > </cfif> > > Any thoughts on how i can use the isdefined() test in this scenario? > I'm probably missing something simple... i blame the heat ;) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~----------~----~----~----~------~----~------~--~---