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]

Reply via email to