how to head to previous page in html code example Example: php previous site header('Location: ' . $_SERVER['HTTP_REFERER']);