This topic is locked

Is there a way to know when a user goes to another page

4/3/2021 3:50:41 AM
PHPRunner General questions
Myr0n author

Hello everybody

Is there a way to know when a user goes to another page, for example if a user is in products_list.php and clicks in the menu to go to the main menu?

I would like toexecute a code snippet before exit a page, there is not necessary that the user edit something.

admin 4/4/2021

It is not possible this way. Your best bet is to execute some code when user arrives to the next page. You can see what page they came from and run some code based on this logic.