SyntaxFix
Write A Post
Hire A Developer
Questions
Store it either in a cookie (if it's acceptable for your situation), or in a session variable.
session_start(); if ( !isset( $_SESSION["origURL"] ) ) $_SESSION["origURL"] = $_SERVER["HTTP_REFERER"];