Ok so what am I doing wrong here?
value=<cfif
isdefined('Evaluate("cookie.ans#i#")')>Evaluate("cookie.ans#i#")</cfif>
/><br />
or
value=<cfif isdefined('cookie["ans#i#"]')>bah</cfif> /><br />
Both produce this similar error....
<error info>
must be a syntactically valid variable name.
</error info>
22.0486 (UTC) FILETIME=[653F6960:01C3B92C]
>
>Use square bracket notation
>
>Cookie["ans#i#"]
>
>Or Evaluate
>
>Evaluate("cookie.ans#i#")
>
>-----Original Message-----
>From: Dan Farmer [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, December 02, 2003 5:05 PM
>To: CF-Talk
>Subject: variables within variables
>
>
>What is a way to evaluate variables like the following. I have a cookie
>variable and it's being processed within a loop with variable 'ans#i#'
>variables...
>
>Obviously I cannot do this...
>
>#cookie.ans#i##
>
>So what can I do?
> _____
>
>
>
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
- Variables within variables Les Irvin
- Re: Variables within variables Matt Robertson
- MySQL error with myODBC drivers Neil Clark =TMM=
- Re: MySQL error with myODBC drivers Stephen Moretti
- RE: MySQL error with myODBC drivers Neil Clark =TMM=
- RE: MySQL error with myODBC drivers Matt Robertson
- variables within variables Dan Farmer
- RE: variables within variables Raymond Camden
- RE: variables within variables Philip Arnold
- RE: variables within variables cf-talk
- RE: variables within variables Dan Farmer
- RE: variables within variables Dave Watts
- RE: variables within variables Scott Brady
- Re: variables within variables Ubqtous