php get previous url

Solutions on MaxInterview for php get previous url by the best coders in the world

showing results for - "php get previous url"
Andrés
28 Nov 2020
1basename($_SERVER['HTTP_REFERER']);
Sixtine
02 Jan 2019
1$_SERVER['HTTP_REFERER']
Kyara
07 Apr 2016
1//This should be on the previous page
2session_start();
3$_SESSION["url"] = "the_url_of_page_we_want_to_get_back.php";
4
5//This should be on the current executing page
6session_start();
7$previous_page_url = $_SESSION["url"];