Calling page is:

 <cflocation url="test_ref.cfm">

Still not working.

-----Original Message-----
From: Charles Sheehan-Miles [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 29, 2006 7:43 AM
To: CF-Talk
Subject: Re: cgi.HTTP_REFERER

This is kind of like asking to make sure your computer is plugged in (so
you've probably already checked this) but it will be empty if you didn't
actually have a referrer (as in, you browse directly to the page).


On 3/29/06 10:38 PM, "Ian Skinner" <[EMAIL PROTECTED]> wrote:

> <cfif cgi.HTTP_REFERER IS NOT "">
> cgi variable exists
> <cfelse>
> cgi variable does not exist
> </cfif>
> 
> 
> <cfoutput>#CGI.HTTP_REFERER#</cfoutput>
> 
> However I am not getting anything back in the cgi variable.
> 
> Any comments appreciated.
> 
> Rick Colman
> 
> Just to eliminate any other kind of white space characters, I usually 
> do a trim on anything I'm trying to compare to an empty string.
> 
> <cfif trim(cgi.HTTP_REFERER) EQ "">
> 
> I also usually try to phrase this as a binary comparison.
> 
> <cfif len(trim(cgi.HTTP_REFERER))>
> 
> 
> --------------
> Ian Skinner
> Web Programmer
> BloodSource
> www.BloodSource.org
> Sacramento, CA
> 
> ---------
> | 1 |   |
> ---------  Binary Soduko
> |   |   |
> ---------
>  
> "C code. C code run. Run code run. Please!"
> - Cynthia Dunning
> 
> Confidentiality Notice:  This message including any attachments is for 
> the sole use of the intended
> recipient(s) and may contain confidential and privileged information. 
> Any unauthorized review, use, disclosure or distribution is 
> prohibited. If you are not the intended recipient, please contact the 
> sender and delete any copies of this message.
> 
> 
> 
> 
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:236506
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to