In PHP, the unfriendly PHP program that uses the header function to redirect the page immediately. if the redirection is immediate, I think there are the following unfriendly points: 1, when the user does not know the return status, the user is forced to jump to other interfaces, resulting in the loss of data filled in by the user, and the unclear status of the return status. 2. most users want to be unfriendly to redirect headers () in PHP immediately
PHP programmers often use the header function to redirect pages. if the redirection is immediate, I think there are the following unfriendly points:
1. when the user does not know the return status, the user is forced to jump to other interfaces, resulting in the loss of data filled in by the user and the unclear problem of the return status.
2. most users want to retain the original interface only by returning the status information after submitting the page. in this way, AJAX is more suitable for returning the user operation status.
In addition, I personally think that page redirection should not be performed through the header function. unless it can be determined that the current interface has no value for the user, AJAX technology should be used to keep the current user interface. or you can use The tag or js prompts that the user page is about to jump.
The best user experience should be a mix of ajax and js to return a prompt for user operations, retain the current status of the user operation interface, or directly reflect the operation results on the current interface.