<cfloop from="1" to="10" index="curIndex">
     <cfset val = Form["theTextBox_" & curIndex] />
<cfloop>

On Wed, Feb 11, 2009 at 8:04 AM, Nupur Gupta <nupurgupta0...@gmail.com>wrote:

>
> I have a set of textboxes in a form as
>
> <cfloop from="1" to="10" index="curIndex">
>
> <cfinput type="text" name="theTextBox_#curIndex#" value="" />
> <cfloop>
>
> On submitting the form, I need to get the value in each text box as
>
>  <cfloop from="1" to="10" index="curIndex">
>
> <cfset val = "Form.theTextBox_#curIndex#">
>
> <cfloop>
>
> However, this does not work , for each val I get Form.theTextBox_1 etc., it
> is not fetching the value.
>
> I also tried
>
> <cfset val=#Form.theTextBox_curIndex#>
>
> It did not work. Any ideas?
>
> Thanks a lot.
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:319170
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to