Log in

View Full Version : Help with a conditional based on referrer


jscieza
08-24-2009, 07:51 PM
Hello,

I want to display a drop-down menu at the top of my header only for people who comes from a specific domain. Is this possible to do?

Thank you,
Jonathan

James Birkett
08-24-2009, 08:04 PM
You could use PHP's $_SERVER['HTTP_REFERER'] function and match the domain. It is not relied on though.