How to avoid resending data on refresh in php

前端 未结 6 2095
心在旅途
心在旅途 2020-12-05 16:12

I have a page \"index.php\" where i have a link called \"add_users.php\". In \"add_users.php\", I accept user information and come back to the same page \"index.php\" where

6条回答
  •  误落风尘
    2020-12-05 16:46

    Same challenge I faced using a comment box, what I did is to redirect the page to the same page and to an specific "anchor". Example:

    Then for the PHP code I have:

    
    

    This avoid the F5 resend of the data from the Form

提交回复
热议问题