I want to make a loop for a running count no for my dynamic variables like Name1, Name2 and Name3. Those numbers which are 1, 2 and 3 in my variables name is from my running count no:
<cfloop index="x" from="1"='#Session.SPeribadi_Spouse_no#' step="1">
<CFSET Session.SPeribadi#x#_Age='#form.Pasangan#x#_Age#'>
My problem is whenever i used my variable more than once in an expression ( i can not use CFSET to set using my dynamic variable), an parser error occured.
How can i write this expression with no syntax errors?
[sig][/sig]
<cfloop index="x" from="1"='#Session.SPeribadi_Spouse_no#' step="1">
<CFSET Session.SPeribadi#x#_Age='#form.Pasangan#x#_Age#'>
My problem is whenever i used my variable more than once in an expression ( i can not use CFSET to set using my dynamic variable), an parser error occured.
How can i write this expression with no syntax errors?
[sig][/sig]