That is one of the most useful sites i've been to . Why is this site not publicised??
I have loads of additional notes and tips scrawled on pages of my paper documentation which I would love to inform allaire of. cheers Kola Oyedeji Web developer Macromedia Certified Advanced ColdFusion 5 Developer http://www.Alexandermark.com (+44)020-8429-7300 > -----Original Message----- > From: Jochem van Dieten [mailto:[EMAIL PROTECTED]] > Sent: 13 November 2001 17:15 > To: CF-Talk > Subject: Re: Are forms really structures? > > > 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 > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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

