SirGalaahad
Programmer
Hello,
i have some problems with dynamic variables. I have a form with the textareas named (for example) Link, Text, Cur_Date. After posting they are named Form.Link, Form.Text and Form.Cur_Date.
In my database i have the following columns:
Name | Value
-------------------
Link | 123
Text | abc
Cur_Date | today
So when I start the query the variable #Name# has the values Link, Text and Cur_Date. Now it comes:
In the <cfoutput> Tag i use the following <cfset> Tag:
<cfset myvariable = "Form.#Name#">
With <cfset "#myvariable#" = "some value"> I can assign my form variables new values, but how can I read from my variables?
I need something like:
<cfoutput>
"#myvariable#"
</cfoutput>
should be equal to (for #Name# = "Link"
:
<cfoutput>
#Form.Link#
</cfoutput>
Thanks,
Rene Guenther
i have some problems with dynamic variables. I have a form with the textareas named (for example) Link, Text, Cur_Date. After posting they are named Form.Link, Form.Text and Form.Cur_Date.
In my database i have the following columns:
Name | Value
-------------------
Link | 123
Text | abc
Cur_Date | today
So when I start the query the variable #Name# has the values Link, Text and Cur_Date. Now it comes:
In the <cfoutput> Tag i use the following <cfset> Tag:
<cfset myvariable = "Form.#Name#">
With <cfset "#myvariable#" = "some value"> I can assign my form variables new values, but how can I read from my variables?
I need something like:
<cfoutput>
"#myvariable#"
</cfoutput>
should be equal to (for #Name# = "Link"
<cfoutput>
#Form.Link#
</cfoutput>
Thanks,
Rene Guenther