Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTTP Referrer Information 1

Status
Not open for further replies.

brian1313

Programmer
Nov 1, 2001
29
US
First off.... happy holidays to everyone. Hope you're all enjoying time with family and friends.

Ok, I'd like to set up a CFIF statment that would allow me to add a piece of text to a page depending on where the user came from.

something like:
<CFIF http_referrer CONTAINS [sitename]>
<p>you're visiting from [sitename]</p>
</CFIF>

Is there any way to access the HTTP Referrer information, maybe through a function, so I could acheive this?

Thanks in advance...

-b-
 
oh, you were so close...

<CFIF FindNoCase('sitename',cgi.http_referer) GT )>
<p>you're visiting from [sitename]</p>
</CFIF>

rudy
 
hey rudy...

i hope you mean 'GT 0' not 'GT )&quot; right?

thanks man, i was actually just spelling the variable wrong... *sheepish look* that was a big help

-b-
 
right, thanks for spotting the typo (too much gentleman jack, i guess)

let me guess, you spelled it &quot;referrer&quot;

heh


happy holidays
 
not only can you fix my CFML boo-boos... you have good taste in drinks...

cheers *hoists one to ya at the end of a really long holiday*

-b-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top