How can I obtain the user's source? I want to know that the user is accessing the previous URL of a website. for example, if you first access a.com and then go to B .com, if you want to know that you are from a.com on B .com, it is displayed in the url in the form of from = a.com. how can I obtain this information ?, $ _ SERVER: how can I obtain the user's source?
I want to know that the user is accessing the previous URL of a website. for example, if you first access a.com and then go to B .com, if you want to know that you are from a.com on B .com, it is displayed in the url in the form of from = a.com. how can this information be obtained?
------ Solution --------------------
$ _ SERVER ["HTTP_REFERER"]
------ Solution --------------------
It cannot be obtained only by clicking through js. flash. open directly, etc.
------ Solution --------------------
Define a unique identifier to pass the unique identifier.
------ Solution --------------------
Discussion
$ _ SERVER ["HTTP_REFERER"]
------ Solution --------------------
PHP code
$ _ SERVER ["HTTP_REFERER"]