Prevent Form resubmission upon hitting back button

前端 未结 8 2020
无人及你
无人及你 2020-12-03 05:17

I have searched many posts here and elsewhere but can\'t seem to find a solution to my problem. I have a page which displays database entries: database.php. These entries c

8条回答
  •  借酒劲吻你
    2020-12-03 05:29

    header("Cache-Control: no cache");
    
    session_cache_limiter("private_no_expire");
    

    NOTE: After using the post data what you have submitted from the form then, these two lines should be used at the end of function.so, when we are back to the redirected page, it will not ask you to resubmit the page. This will work.

提交回复
热议问题