"TP3.2 + any other PHP framework" edit, delete, add data, return to the original page (Ajax+form two ways to submit all can)

Source: Internet
Author: User
Tags php framework

1, Purpose 1: In the following page, p=2, for example, we delete the data id=13, through the Ajax commit {id,p} 2 parameters, it is possible, the page return json URL parameter is the same as the P.

2. Objective 2:

Step 1: In the following page, edit id=12 data, this time first on the index page, through the $_request[' P '] dynamically get page number p, and then in the Index.html page rendering, into the hidden field or splicing "<a> edit" href attribute, With the ID and P parameters,

Step 2: Enter the edit page edit.html, the ID and P are placed in the hidden domain together save the post submission, return to the Index.html page with the P parameter.

Index List page:

Edit page:

"TP3.2 + any other PHP framework" edit, delete, add data, return to the original page (Ajax+form two ways to submit all can)

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.