Simple page jump problems

Source: Internet
Author: User
For simple page jump questions about page jump, I would like to ask you to enter some data on page A, submit it to page B for database processing, and return it back to page, how does one return the processing result on page B to page? Thank you first ., You can use javascript scripts on page B. The data you want to pass is a problem in php... with ajax, you can jump to a simple page without having to jump.
For questions about page jump, please refer to prawn,
Enter some data on page A, submit it to page B for database processing, and return to page,
How does one return the processing result on page B to page?

Thank you first.



------ Solution --------------------
You can use javascript scripts on page B. The data you want to transmit is a problem in php ..
------ Solution --------------------
With ajax, the processing result can be returned to the page without Jump. Below is A small example:

Http://www.w3school.com.cn/jquery/ajax_post.asp
------ Solution --------------------
The advantage of ajax is that the page is not refreshed, asynchronous operations, and a good user experience.

Ajax with jquery is also good.
This is from the Chinese community.
Http://jquery.org.cn/manual/jQuery.ajax_options.html

If you do not need ajax, you can submit it using A form on page A. after Page B is processed, you can jump to page.
Page


Page B
... // Warehouse receiving operations or something
Header ("Location: A. php"); // However, the user experience is poor!
------ Solution --------------------
Ajax is better
Related Article

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.