so, just out of curiousity...why do you need this array? you also don't need the evaluate(). you can simply do form[i] (which is -exactly- what you're doing in your conditional where you're testing len(form[i]).).
On 12/18/06, Bruce Sorge <[EMAIL PROTECTED]> wrote: > OK, I figure it out so please disregard the last message. > > I did it like this: > > <!--- Create the initial array ---> > <cfset languageArray= ArrayNew(1)> > > <!--- Loop through the form fields and get the names of them---> > <cfloop index="i" list="#form.fieldnames#"> > <!--- If the field is not empty, get the info ---> > <cfif LEN(form[i])> > <cfset languageArray[1][1] = #i#> > <cfset languageArray[1][2] = #evaluate("form.#i#")#> > <!--- Query will go here soon ---> > </cfif> > </cfloop> > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264367 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4