Thanks. This is the final working snippet to sort the formfields: <cfset newList = ListSort(Form.Fieldnames, "TextNoCase")> <cfloop list="#newList#" index="this"> <cfoutput>#this#=#form[this]#<br></cfoutput> </cfloop>
At 15:23 8/12/2002 +0100, you wrote: ><cfset newList = ListSort(Form.Fieldnames, "TextNoCase")> > > >Duncan Cumming >IT Manager > >http://www.alienationdesign.co.uk >mailto:[EMAIL PROTECTED] >Tel: 0141 575 9700 >Fax: 0141 575 9600 > >Creative solutions in a technical world > >---------------------------------------------------------------------- >Get your domain names online from: >http://www.alienationdomains.co.uk >Reseller options available! >---------------------------------------------------------------------- >---------------------------------------------------------------------- > > > > > Dave > Phipps > > <dave@phipps- To: > <[EMAIL PROTECTED]> > cf.co.uk> cc: > > Subject: RE: [ cf-dev ] > Looping over form - syntax? > 08/12/02 > > 03:25 > PM > > Please > > respond > to > > dev > > > > > > > > >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] > > > > > > > >-- >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]
