+ 3

How to check that from which page we came in the current page in php?

I simply want to check that what was my previous page.

31st Oct 2018, 8:11 PM
Praveen Soni
Praveen Soni - avatar
3 Respostas
+ 3
Nice 😮 thanks 😀 rudolph flash
31st Oct 2018, 9:29 PM
Praveen Soni
Praveen Soni - avatar
+ 1
The standard method is to check the referer HTTP header via $_SERVER['HTTP_REFERER']. However, you have to pay attention because this header is not always sent by the browser or can even be faked.
31st Oct 2018, 11:42 PM
KatharinaSt