PDA

View Full Version : HTTP_REFERER question


Kickin
08-19-2005, 11:38 PM
I have a custom error page that has information that gets filled in by the user. I want to use http_referer to see which page the user was sent from. But when it sends the result out, it says the referer is the custom error page. Is there a way to see where it was prior to the error page?

Hostultrix
08-20-2005, 12:59 AM
What are you using? $ENV{'HTTP_REFERER'} should work

Kickin
08-20-2005, 01:18 AM
Well it "works", but not like I want it to.

Lets say you go to http://sub1.domain.com and you don't have access, it sends you to http://www.domain.com/error.htm where you can "apply" for access to the site. When you fill out the form it is sent to a .cgi page that sends an email. That email shows the referer as /error.htm (since that was the page prior to .cgi). But what I want to know is they were sent from sub1.domain.com. Any ideas?