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.
Nice 😮 thanks 😀 rudolph flash
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.