Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php get previous url

$_SERVER['HTTP_REFERER']
Comment

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"];
Comment

PREVIOUS NEXT
Code Example
Php :: php call parent constructor 
Php :: hide wordpress error 
Php :: woocommerce cart button shortcode 
Php :: php remove cookie 
Php :: how to remove notice error in php 
Php :: php select version ubuntu 
Php :: php time format am pm 
Php :: php has been blocked by CORS policy 
Php :: laravel request all except 
Php :: last insert id model codeigniter 
Php :: image dimension when uploading in laravel validation 
Php :: get image extension in php 
Php :: php connect to postgresql 
Php :: pi() in php 
Php :: php go to another page 
Php :: get record of last 24 hours in laravel 
Php :: this load session codeigniter 
Php :: php unit skip test 
Php :: remove space from string php 
Php :: error log array 
Php :: page load time in php 
Php :: php get only numbers 
Php :: init hook wordpress 
Php :: set charset of response php 
Php :: laravel collection flatten 
Php :: last login date time in wordpress 
Php :: php myadmin reset auto incremente 
Php :: first day of month php 
Php :: wordpress check if current page is front page 
Php :: php convert array to json object 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =