Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to get the previous page url in php

//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"];
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #previous #page #url #php
ADD COMMENT
Topic
Name
2+8 =