• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 574
  • Last Modified:

cgi.http_referer not working correctly

hi all,
running into a problem with the cgi.http_referer reference...seems as though it's not working correctly. You see what could possibly be wrong with the following syntax?

<cfif #cgi.HTTP_REFERER#  eq"http://www.domain.com/domain/browse.cfm?gender=Mens&category=Nutrition&clear=0&counter=1" OR #cgi.HTTP_REFERER#  eq"http://www.domain.com/domain/browse.cfm?gender=Womens&category=Nutrition&clear=0&counter=1"><cfelse><img src="http://www.domain.com/domain/admin/website/pic/#vendor.thumbnail#"></cfif>

any ideas why this wouldn't be working? All i get is the cfelse image displaying...doesn't seem to be taking into account cgi.http_referer.

Thanks,
Rick
0
bluskyGuy
Asked:
bluskyGuy
  • 2
1 Solution
 
pinaldaveCommented:
Hi bluskyGuy,
<cfif cgi.HTTP_REFERER  eq "http://www.domain.com/domain/browse.cfm?gender=Mens&category=Nutrition&clear=0&counter=1" OR cgi.HTTP_REFERER  eq "http://www.domain.com/domain/browse.cfm?gender=Womens&category=Nutrition&clear=0&counter=1"><cfelse><img src="http://www.domain.com/domain/admin/website/pic/#vendor.thumbnail#"></cfif>

Regards,
---Pinal
0
 
pinaldaveCommented:
Also there is chance that your cgi.http_referer is not displaying the current information just try to output first and see if that has the same value as you are trying to compare using <cfdump var="#cgi.http_referer#">

Regards,
---Pinal
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now