Is there some kind of PHP code that allows me to figure out which of the two pages was last visited.
That is why I need it.
I have 3 pages:
user-management.php, manage-membership.php and manage-user.php
There are two ways to access manage-user.php. One is to click the username in user-management.php, and the other is to click on the membership management account holder. Both user management and membership management are completely different pages, so please do not tell me to combine them in order to simplify them, because it will become easier.
What I want to do is keep track of where I come from.
For example, if I am going to manage -user.php from user-management.php when all the editing is done, I want it to redirect back to user-management.php and the same for membership-management.
How can I check which of the two pages I came from and redirect back to these pages?
source share