Kola Oyedeji wrote: > > AFAIK the form scope is available as a structure: > > If i have a form with the following field: > > <form name="myform" action="test3.cfm" method="post" > > <input type="text" name="name" value="kola" > > <input type="Submit" > > </form> > > and on the action page create an additional form field, > Then loop over the field names with the follwing code, only the real form > field submmited by the form is displayed. > > <cfset form.fake = "hello" > > <cfloop list="#fieldnames#" index="current"> > <br><cfoutput>#current#</cfoutput> > </cfloop>
You are not looping over the form scope here, you are looping over the form variable form.fieldnames. The presence of this variable in the debug output makes me believe that this list is actually created by the browser and submitted together with all the other formfields. Which would also explain why this variable is not updated when adding fields to the form scope/structure serverside. > If I then loop over the form as a structure: > So the question is, is this a feature or a bug? Feature. But maybe one that requires a note at livedocs.allaire.com Jochem ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

