You need the quotes in your case:


<CFIF IsDefined("URL.id")>

  _____  

From: daniel kessler [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 18, 2004 8:49 PM
To: CF-Talk
Subject: Re: #url#

>No, that's not correct.  isDefined DOES work for URL variables.  (It does
>NOT work for CGI variables)
>
><cfif isDefined("url.id")>do something

but if I do:
<cfif isDefined(url.id)>
crap here
</cfif>

it fails with an error, "isDefined(url.id)"

Mine doesn't have the quotes and yours does.  Though with yours, it was
always defined whether it was or not, I think.  As you can see, I'm kinda
new at this.

Pre-difining it and then testing for the pre-defined state seemed to work.
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to