cgi.http_referer not working correctly

Posted on 2005-02-25
Medium Priority
Last Modified: 2013-12-24
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.

Question by:bluskyGuy
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 21

Accepted Solution

pinaldave earned 2000 total points
ID: 13406355
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>

LVL 21

Expert Comment

ID: 13406646
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#">


Featured Post

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month9 days, 13 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question