I want for something like this:
<?php
if($something)
header('Location:javascript:history.go(-2)');
?>
but header('Location:javascript:history.go(-2)'); doesn’t work. Any alternatives?
I don’t know the page the user was just on, so I can’t hardcode the url.
From your point of view, i think you might be looking for something like this: