#form["textread" & n]# where 'n' is your variable value.

On 7/24/07, Dakota Burns <[EMAIL PROTECTED]> wrote:
> I have a form that provides form elements (file uploads & one text box per
> grouping) in a loop.  The names of my form elements (specifically the
> problem one, which is the text box) are "variables.textread", and I've
> concatenated an index value to each of the form fields.  When the form is
> submitted, I'm attempting to capture the value of "form.textread1" (where 1
> is the first indexed value), and am having a problem doing so.  My last
> attempt is listed below, which results in an error stating "form.textread.1"
> is not defined.  What's the best method for concatenating that index value?
>
>
> INCLUDED CODE
>     <cfloop index="i" from="1" to="3" step="1">
>         <cfset text2learn = #form.textread[i]#>
>         <cfoutput>#text2learn#</cfoutput>
>     </cfloop>
>
> Thanks,
> Dakota
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

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