Hi all,
I am trying to get the value of a dynamically created cf parameter.
I am passing several form elements from the previous page which are dynamically created. This means that the element names are
service1
service2
service3
where the number is dynamically created by cf based on record number.
there could be any number of elements passed based on recordset.
on the next page, I need to loop through those values,
I am running a cfloop to the number of service variables,
I now want to print the value of the service variables
<cfoutput>
<cfloop index="I" from="1" to="#servicecount#" step="1">
#service#I##
</cfloop>
</cfoutput>
obviously, this doesn't work,
Is there any way to get the value of a dynamically
created cf parameter.
javascript and perl have the eval() function.
is there anything similar?
If not, is there another way to do this?
is there a built in variable for the number of form elements passed to a cf?
if so, I could read the values into an array, then print those out...
thanks,
Chris Sorel
chris@exnihilo.com
Remember, If you continue to do what you have always done,
you will continue to get what you have always gotten.
I am trying to get the value of a dynamically created cf parameter.
I am passing several form elements from the previous page which are dynamically created. This means that the element names are
service1
service2
service3
where the number is dynamically created by cf based on record number.
there could be any number of elements passed based on recordset.
on the next page, I need to loop through those values,
I am running a cfloop to the number of service variables,
I now want to print the value of the service variables
<cfoutput>
<cfloop index="I" from="1" to="#servicecount#" step="1">
#service#I##
</cfloop>
</cfoutput>
obviously, this doesn't work,
Is there any way to get the value of a dynamically
created cf parameter.
javascript and perl have the eval() function.
is there anything similar?
If not, is there another way to do this?
is there a built in variable for the number of form elements passed to a cf?
if so, I could read the values into an array, then print those out...
thanks,
Chris Sorel
chris@exnihilo.com
Remember, If you continue to do what you have always done,
you will continue to get what you have always gotten.