getapp['II_C_convert' & i]

-----Original Message-----
From: Les Mizzell [mailto:[EMAIL PROTECTED] 
Sent: Saturday, February 17, 2007 9:40 PM
To: CF-Talk
Subject: Re: variable name radio button in a loop

It's late and I'm an idiot!

The answer is:

<input name="II_C_convert#i#"
        type="radio"
        value="yes" />Yes
       <cfif evaluate("getapp.II_C_convert#i#") EQ "yes">
          checked="checked"
       </cfif>
                        
I either need to get some sleep or drink some more Jolt...



> Seems this would work, but it doesn't.
> What would be the best way to handle this?
> 
> 1. <cfloop from="1" to="8" index="i">
> 2.
> 3.  <input name="II_C_convert#i#"
> 4.       type="radio"
> 5.       value="yes"
> 6.       <cfif getapp.II_C_convert#i# EQ "yes">
> 7.          checked="checked"
> 8.       </cfif>
> 9.   />
> 
> </cfloop>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create Web Applications With ColdFusion MX7 & Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270067
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