oi Critz!!
Bah, nevermind me........i'm half asleep still!
--
Critter, MMCP
Certified ColdFusion Developer
Crit[s2k] - <CF_ChannelOP Network="Efnet" Channel="ColdFusion">
-------------------------------------
Tuesday, November 13, 2001, 9:23:09 AM, you wrote:
C> oi Kola!!
C> I didn't think forms were a structure in versions LT 4.5 ?
C> I did this to convert them.....
C> <cfscript>
C> //<cf_frmtoStruct struct="myStruct">
C> frmStruct = StructNew();
C> aryfrmNames = ListToArray(form.fieldnames);
C> for(i=1; i LT ListLen(form.fieldnames)+1; i=i+1){
C>
StructInsert(frmStruct,"#ListGetAt(form.fieldnames,i)#",evaluate("form." &
ListGetAt(form.fieldnames,i)));
C> }
C> SetVariable("caller.#attributes.struct#",frmStruct);
C> </cfscript>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
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