Browser back button restores empty fields

后端 未结 6 1426
小鲜肉
小鲜肉 2020-12-05 09:02

I have a web page x.php (in a password protected area of my web site) which has a form and a button which uses the POST method to send the form dat

6条回答
  •  日久生厌
    2020-12-05 09:51

    You could use autocomplete="off" in your fields. This way the values won't be cached by the browser so the values won't be filled in the form when the user clicks the back button.

提交回复
热议问题