PHP - Referring URL

I’ve had to look this up twice now, so I figured I’d post it here for future reference.  When you need to interact with the referring url, here’s the PHP code to grab it for use:

 getenv("HTTP_REFERER");  

About Joseph R. B. Taylor

Joseph R. B. Taylor is a humble designer/developer who makes stuff for screens of all shapes and sizes. He is currently the lead UI/UX Architect at MScience, LLC, where he works to create simple experiences on top of large rich datasets for their customers and clients.