1. Set a prompt in the background to indicate whether the addition is successful or not
2. Set the prompt information on the adding page
(use whatever style you like)
3. Write js control prompts Display and disappearance of information
The above introduces how to display a beautiful prompt message without jumping to the page after adding data (non-ajax submitted data), including the content. I hope it will be helpful to friends who are interested in PHP tutorials.