Unfriendly to redirect headers () in PHP immediately

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.