I need to create a php call that will recognize the last page a user navigate from and display a header associated with the page. Example: User navigates to post from page 1 then header 1 appears, but if the navigate to same post from page 2 then header 2 is displayed. Any ideas. I am lost on where to even start.
A:
It's been a time since I last programmed in PHP, but $_HTTP['referrer']
(or referer
, I'm not sure), displays the page the user came from.
Luís Guilherme
2010-01-06 15:46:39