Is this what you are looking for?  Where does the value of 'counter' come
from?  Is it from Form.Counter or something else?

<cfloop from="1" to="#form.counter#" index="i">
    <cfset session.PARCAdmin.ChildOffer[counter] = structnew()>
    <cfset session.PARCAdmin.ChildOffer[counter].childOfferName =
Form["ChildOffer_#i#"]>
</cfloop>

On 7/16/07, Mark Davis <[EMAIL PROTECTED]> wrote:
>
>  Alright...not sure why I am having such trouble making this work...
>
>
>
> I have a set of x number of form variables named as such...
>
>
>
> Form.childOffer_1
>
> Form.childOffer_2
>
> .....
>
>
>
>
>
> After form submission, I need to loop thru those and set the values into
> different structs, like this...
>
>
>
> <cfloop from="1" to="#form.counter#" index="i">
>
> <cfset session.PARCAdmin.ChildOffer[#counter#] = structnew()>
>
>             <cfset session.PARCAdmin.ChildOffer[#counter#].childOfferName
> = #No Workie Here#>
>
> </cfloop>
>
>
>
> The value needs to have form.childOffer concatenated with the value of I,
> then evaluated to get the value.
>
>
>
> Any suggestions?  I know I am missing something obvious.
>
>
>
> Mark Davis
> Cricket Communications
> Software Engineer III
>
> 303-734-7694 (w)
>
>
>
> >
>


-- 
Aaron Rouse
http://www.happyhacker.com/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Houston ColdFusion 
Users' Group" discussion list.
To unsubscribe, send email to [EMAIL PROTECTED]
For more options, visit http://groups.google.com/group/houcfug?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to