php how to return for the last page code example Example: php previous site header('Location: ' . $_SERVER['HTTP_REFERER']);