Coldfusion Dynamic Variable problem
Posted on 2011-03-14
Right, I may be missing the obvious here, but I'm stuck:
I have a page with 5 forms on it. The forms are created dynamically from a database. Fieldnames are generated dynamically as well - and also has dynamic jQuery linked to update price fields and so on.
Now, one of the variables is #stand_name#, then further #stand_name#_price and #stand_name#_size
Which obv. gives me:
On the next page I need to be able to do a calculation based on the #stand_name#_size.
How can I do this?
As the page doesn't know what package was used, and I can't find a way of evaluating a variable within a variable.
<cfset frmSize = "#form.(#form.package#)_size#">
I will also need to cfset frmPrice to match the packages price as well.
Many thanks in advance.