Php?mysqlquery result Split page is displayed in a.html. the user fills in the query form data. The form contains a lot of content and is passed in POST mode. B .phpreceives the form data of paia.html and queries the mysql database based on the form data. As there may be many query results, I want to display them by page, so I first checked the total number, then called c. php to return the page navigation and link, and then displayed the query results by page using limit php + mysql.
In a.html, the user fills in the query form data, and the form contains a lot of content, which is passed in POST mode.
B .phpreceives the form data of paia.html and queries the mysql database based on the form data.
As there may be many query results, I want to display them by page, so I first checked the total number and then called c. php returns the page navigation and link, and uses limit to display the page by page. However, after practice, it is found that the first page can be correctly displayed. when you click the next page or another page, there will be no information. later I found that the reason was that when I clicked the second page, it actually called
HTML code
In this way, the original POST form data is lost, and only the page value in the GET mode is passed, so nothing is displayed, how can I ensure that the original form data is kept before new form data is submitted.
In fact, just like google and Baidu search engines, after a query is submitted, the loss of data submitted by the original user will not be lost because of page flip. please consult with us, is there any better way to achieve this?
------ Solution --------------------
1. submit the form in get mode
2. save the data submitted in post mode to the session
------ Solution --------------------
You can try CSDN advanced search:
Http://so.csdn.net/advanced_search.aspx
This is how data is transmitted using get.
Nothing bad