That works but how do I sort the fieldnames alphabetically? I thought I could use a collection loop for form vars?
MTIA Dave At 15:09 8/12/2002 +0100, you wrote: >whats the difference? > >it works with evaluate doesnt it? > >or am I bringing down the wrath of god? > > >At 14:53 12/08/02 +0100, you wrote: >> <cfloop list="form.fieldnames" index="this"> >> >> <cfoutput> >> #this#=#form[this]#<br> >> </cfoutput> >> >></cfloop> >> >>I'll get Raymond Camden on you if you're not careful. >> >> > -----Original Message----- >> > From: Matt Horn [mailto:[EMAIL PROTECTED]] >> > Sent: 12 August 2002 15:05 >> > To: [EMAIL PROTECTED] >> > Subject: Re: [ cf-dev ] Looping over form - syntax? >> > >> > >> > Hi >> > >> > >> > <cfloop list="form.fieldnames" index="this"> >> > >> > <cfoutput> >> > #this#=#evaluate(this)#<br> >> > </cfoutput> >> > >> > </cfloop> >> > >> > >> > >> > At 15:06 12/08/02 +0100, you wrote: >> > >Hi, >> > > >> > >Just trying to loop over a form and can only seem to get the >> > fieldnames >> > >and not the values. How do I do this? >> > > >> > >So far I have: >> > > >> > ><cfloop collection="#form#" item="i"> >> > ><cfoutput>#StructFind(form, i)#<br></cfoutput> >> > ></cfloop> >> > > >> > >Any ideas? >> > > >> > >Thanks >> > > >> > >Dave >> > > >> > > >> > >============================================ >> > >Phipps CF Development >> > >Oxford, Oxfordshire. >> > >Telephone: +44(0)7718 896696 >> > >http://www.phipps-cf.co.uk >> > >============================================ >> > > >> > > >> > >-- >> > >To unsubscribe, e-mail: [EMAIL PROTECTED] >> > >For additional commands, e-mail: [EMAIL PROTECTED] >> > >For human help, e-mail: [EMAIL PROTECTED] >> > > >> > >> > >> > -- >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > For human help, e-mail: [EMAIL PROTECTED] >> > >> >> >>-- >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >>For human help, e-mail: [EMAIL PROTECTED] > > >-- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >For human help, e-mail: [EMAIL PROTECTED] > ============================================ Phipps CF Development Oxford, Oxfordshire. Telephone: +44(0)7718 896696 http://www.phipps-cf.co.uk ============================================ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
