How to avoid resending data on refresh in php

前端 未结 6 2101
心在旅途
心在旅途 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:23

    Use meta refresh

    <%meta http-equiv="refresh" content="5;url=http://example.com/" />" at the time of your success message after adding data into the DB.

    may be its trick to avoid reloading .

    Thanxs, Gobi.

提交回复
热议问题