I have some variables in the session object that have the same naming convention like so:
form1Var1, form1Var2, form1Var3...
form2Var1, form2Var2, form2Var3...
I need to use all of them in a function and would like to pass just "form1" to the function and then recreate the form1Var1, form1Var2, etc and read those values from the session object.
Is there an easy way to recreate the variables that have a dynamic name? I looked at eval() but I'm not sure that would work for this.
Thanks,
Andrew
form1Var1, form1Var2, form1Var3...
form2Var1, form2Var2, form2Var3...
I need to use all of them in a function and would like to pass just "form1" to the function and then recreate the form1Var1, form1Var2, etc and read those values from the session object.
Is there an easy way to recreate the variables that have a dynamic name? I looked at eval() but I'm not sure that would work for this.
Thanks,
Andrew
Comment