Before anyone harps on your for this, the preferred syntax is:

<CFSET address = cgi.remote_addr>, no # needed.
<CFSET host = "unknown">
<CFSET example = "#var# is this"> or
<CFSET example = var & " is this">

Also to test for empty strings, some people will say it's faster to do 
<CFIF LEN(referer)>...

> <CFSET #address# = "#cgi.remote_addr#">
> <CFSET #host# = "#cgi.remote_host#"> 
> <CFSET #referer# = "#cgi.http_referer#"> 
> <CFSET #agent# = "#cgi.http_user_agent#"> 
> <CFSET #page# = "#cgi.script_name#">  
> <CFIF #host# is "">    
> <CFSET #host# = "unknown"> 
> </CFIF> 
> <CFIF #referer# is "">         
>         <CFSET #referer# = "unknown"> 
> </CFIF>  
> 
> 
> <cfmail
> from="#[EMAIL PROTECTED]#"
> cc="#[EMAIL PROTECTED]#"
> to="#[EMAIL PROTECTED]#"
> subject="404 Error Encountered"
> >
> 404 Error Encountered:
> 
> IP:                                                           #address# 
> Host:                                                         #host# 
> Referer:
> #referer# 
> Agent:                                                        #agent# 
> page:                                                         #page# 
> host:                                                         #host#
> 
>   </cfmail>
> 
> 
> Sorry, the URL <cfoutput>#referer#</cfoutput> either does not exist, or has
> been removed from our site. 
> An email has been send to the Webmaster to inspect this error further. <br>
> 
> </snip>
> 
> 
> The problem is that I am not receiving everything BUT the referring page. Is
> there something else I am overlooking/need to be doing?
> 
> Thanks in advance for your assistance,
> 
> Dayv
> 
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to