#evaluate('form.#id#_name')# becomes #form["#id#_name"]#

cheers,
barneyb

On Thu, Mar 19, 2009 at 2:18 PM, Jim McAtee <[email protected]> wrote:
>
> I read that in CF8 evaluate() should no longer be necessary.  If so, how
> would you cleanly rewrite the code below without it?
>
> I have a table populated with form field corresponding with records in a
> table, each idendified by record id.  Say I have the record ids in a list.
>
> <cfset idlist="32,8,11,45">
>
> <cfloop index="id" list="#idlist#">
>  <tr>
>    <td><input type="text" name="#id#_name"
> value="#evaluate('form.#id#_name')#">
>    ...
>  </tr>
> </cfloop>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320720
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to