> I have on a field that is named using an id. > ... > <CFOUTPUT query="getids"> > <INPUT type="text" name="name[#getids.id#]" value="#getids.id#"> > </CFOUTPUT> > ... > <CFOUTPUT> > #form.name[getids.id]# > </CFOUTPUT> > > I get "error resolving parameter form.name. > I can see all my form fields listed in the debugging info at > bottom of page. > i.e. > name[1] = 1 > name[2] = 2
When you submit a form, the fields within that form become ColdFusion variables. The characters "[" and "]", like all characters other than letters, numbers and underscores, aren't valid within variable names. If you want to work around this without changing your form field names (though, personally, I'd recommend changing your field names myself), you can probably just use the fact that the Form scope is a structure: #Form["name[1]"]# I haven't tried this myself, though. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

