No, CGI variables always exist.

IsDefined("cgi.somevariablethatwillnevereverexist") will return true

Do <cfif Len(cgi.whatever)> instead

---
Billy Cravens
Web Development, EDS
[EMAIL PROTECTED]


-----Original Message-----
From: BT [mailto:[EMAIL PROTECTED]] 
Sent: Friday, September 21, 2001 7:48 AM
To: CF-Talk
Subject: RE: Get 404 referrer


That's correct... DO a is Defined if else statement.

-----Original Message-----
From: Jason Blum [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 21, 2001 8:23 AM
To: CF-Talk
Subject: RE: Get 404 referrer


just a guess - you only get a referrer if you clicked on a link to this
page.

If you load the page directly, ie type it into the address bar, you get
no cgi.http_referrer.

Spent an hour puzzling over this last week!

> ----------
> From:         Steven Douglas
> Reply To:     [EMAIL PROTECTED]
> Sent:         Thursday, September 20, 2001 9:43 AM
> To:   CF-Talk
> Subject:      Get 404 referrer
> 
> Hello,
> 
> I'm trying to capture the http referrer from a 404 page.  In the 
> cfadmin I have a page set up to handle the 404, and in the source of 
> that page I am
> outputting cgi.http_referrer  but it comes up blank in both ie and
> netscape. 
>   Is there any other way to capture the referring page, or is cf doing
> 
> something weird when a 404 is encountered.
> 
> Any help is appreciated. Thanks!
> 
> -Steven
> 
> 
> 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to