Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Dicky #1
Cookie & evaluate
Hi All, Heres my problem... This snippet of code: <cfif
isDefined('#evaluate('COOKIE.poll' & FORM.pollID)#')> is causing this
error: Variable COOKIE.poll2 is undefined. Does anyone know why? Thanks,
Richard ps. I'm using CF MX & Win2003
Dicky Guest
-
Evaluate within CFSET
I'm looping through a list of sites. I've written queries to count the number of live and pending articles in tables that begin with the site's... -
HTTP::Cookie won't store sent cookie
Hi all, My script requests http://foo.bar.com/ with code that looks a little like this: my $ua = LWP::UserAgent->new; my $cookie_jar =... -
PreserveSingleQuotes and Evaluate
Hi all. I've run into a bit of a problem with part of an application. I have users inputting , what can be, multiple animal (Species) names and... -
Cookies set one time, I delete cookie, cookie is never set again!
I am having this problem: My PHP script will set a cookie, it's there in my /Cookies folder. I delete the cookie (I have to for testing purposes,... -
authentication cookie vs session cookie
Hi, What are the differences between authentication and session cookies? In my web.config file, I set the cookieless attribute for the... -
OldCFer #2
Re: Cookie & evaluate
Normally this would not be coded this way. IsDefined() expects the string name
of
a variable, not the value itself, which is what
<cfif isDefined("#evaluate('COOKIE.poll' & FORM.pollID)#")>
would do. The following would check if COOKIE.poll2 exists if
form.pollid = "2"
<cfif isDefined("COOKIE.poll" & FORM.pollID)>
<cfoutput>#evaluate('COOKIE.poll' & FORM.pollID)#</cfoutput>
</cfif>
OldCFer Guest



Reply With Quote

