I have a page where I need to get the referring URL so I can redirect them back after they compete a form. My problem is, the form has several drop menus and each time a selecti
Store the referer in the first request into a session variable or a cookie. $_SESSION or $_COOKIE super globals can help achieve this.
$_SESSION
$_COOKIE
I recommend sessions as the user won't be able to hijack the value locally.