Excuse me, after PHP executes a certain operation performed by the user (jump execution, non-ajax execution), it then jumps to the last page or other pages to remind the user to return the execution result. How to achieve this reminder only this time? The execution of the jump request is valid, and the data reminder will no longer exist after refreshing this page again.
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: