简体   繁体   English

PHP-如何通过单击上一页按钮而不刷新页面来显示POST详细说明结果

[英]PHP - How to show POST elaboration result clicking previous page button and not refreshing page

I'm developing a php page that is the result of some php elaboration with parameters in taken from POST values. 我正在开发一个php页面,该页面是从POST值中提取参数后对php进行细化的结果。 When I go to the next page and go back to the page that I'm developing, the browser asks me again to POST the data reloading the entire page. 当我转到下一页并返回到正在开发的页面时,浏览器再次要求我发布数据以重新加载整个页面。 My problem isn't related to the multiple post request, but I want only to show page. 我的问题与多次发布请求无关,但我只想显示页面。 What can I do this? 我该怎么办? Thanks! 谢谢! :) :)

Try this steps: 请尝试以下步骤:

1) Save result of some php elaboration into session. 1)将一些php详细说明的结果保存到会话中。
2) After POST request is submitted and result saved to session, redirect user to other page which will display the result. 2)提交POST请求并将结果保存到会话后,将用户重定向到将显示结果的其他页面。
3) On those page where user inputs data, clear the session storage before processing submitted data. 3)在用户输入数据的页面上,清除会话存储,然后再处理提交的数据。

So, in fact you need something that is usually called 'Session messages stack'. 因此,实际上您需要通常称为“会话消息堆栈”的东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM