📌  相关文章
📜  如何在php代码示例中获取上一页名称

📅  最后修改于: 2022-03-11 14:54:15.276000             🧑  作者: Mango

代码示例2
//This should be on the previous page
session_start();
$_SESSION["url"] = "the_url_of_page_we_want_to_get_back.php";

//This should be on the current executing page
session_start();
$previous_page_url = $_SESSION["url"];