Convert A String To A Variable in Coldfusion -


i using cfloop generate titles of bunch of variables.

problem on output actual variable name ie #qquery.varname# instead of value ie "item name".

heres quick taste of code:

<cfloop query="qquery"> <cfloop query="qtest"> <cfset vartest = "qquery." & varname> <cfoutput>#vartest#</cfoutput> </cfloop> </cfloop> 

thanks :)

try this:

<cfset vartest = qquery[varname]> 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -