> I've read here several times that I shouldn't use the Evaluate function as
> it degrades performance. Would someone show me how I can re-write the code
> below so I don't? This code takes the previously submitted form fields and
> values and converts them to hidden form fields with the old values.

> <!--- set hidden fields from form fields --->
> <CFLOOP ITEM="formElement" COLLECTION="#FORM#">
>       <INPUT TYPE="Hidden" NAME="#Lcase(formElement)#"
> VALUE="#Evaluate("FORM.#formElement#")#">
> </CFLOOP>

<cfloop item="formelement" collection="#form#">
        <input type="hidden" name="#lcase(formelement)#"
        value="#form[formelement]#">
</cfloop>


hth

Isaac Dealey
Certified Advanced ColdFusion 5 Developer

www.turnkey.to
954-776-0046
______________________________________________________________________
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

Reply via email to