On Thu, Mar 19, 2009 at 17:18, Jim McAtee <jmca...@mediaodyssey.com> 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>

<input ... value="#Form[id & "_name"]#">

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more info

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:320718
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