I need a "back" button but without the use of Javascript. I already thought of one possible approach:
Using a session variable (e.g. $_SESSION['http_referer']
) which would be updated every time on every page whenever it's loaded,
saving it's content to a variable (e.g.
$lastPage
) (for further use in the current page)assigning to it the value of
$_SERVER['REQUEST_URI']
But I'm not sure how efficient (or inefficient) this is. Is it at least correct?