Thx .jeff, this works perfectly -----Original Message----- From: thelist-admin at lists.evolt.org [mailto:thelist-admin at lists.evolt.org]On Behalf Of .jeff Sent: 23 January 2003 20:52 To: thelist at lists.evolt.org Subject: RE: [thelist] output value stevenson, ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > From: Stevenson Ngila > > I have form fields called "doc_1", "doc_2". > > Now i have a loop which loops from 1 to 2 setting the > form fields i.e. > > <cfset iDocNo = 0> > <cfloop index="iCount" from="1" to="2"> > <cfset field = 'doc_#iDocNo#'> > </cfloop> > <cfset iDocNo = iDocNo + 1> > > How can i get the value of the field using FORM.field > i.e #FORM.field# is giving me an error. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< try either form[field] or form["doc_" & iDocNo]. .jeff http://evolt.org/ jeff at members.evolt.org http://members.evolt.org/jeff/ -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt !