简体   繁体   中英

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. 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.
2) After POST request is submitted and result saved to session, redirect user to other page which will display the result.
3) On those page where user inputs data, clear the session storage before processing submitted data.

So, in fact you need something that is usually called 'Session messages stack'.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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