You can get the link to the source page and compare it to see if it jumps from the page you executed. to make a judgment. Or you can append a parameter to the jump connection after successful execution. When there are parameters, it prompts that the execution is successful. There is no reminder for normal refresh.
But it is more recommended that you write a function. Enter the prompt and the page to jump to. For details, please refer to the tips of some frameworks.
Execute the reminder first and then jump? Or jump to a transition page, and then jump to the target page after the reminder?
Check whether SESSION exists before each jump. If it does not exist, jump. After the jump is successful, write SESSION.
php can get the connection to the source page:
You can get the link to the source page and compare it to see if it jumps from the page you executed. to make a judgment. Or you can append a parameter to the jump connection after successful execution. When there are parameters, it prompts that the execution is successful. There is no reminder for normal refresh.
But it is more recommended that you write a function. Enter the prompt and the page to jump to. For details, please refer to the tips of some frameworks.
Based on the suggestions from the above people: