I have a small form which retains the form fields when the form is submitted
<input name="name" type="text" placeholder="Your Name" value="<?php print $_POST['name']; ?>" />
The problem is that when the user hits the back button the values are retained.
Is there a way to clear the post variable and if not what is the best way to clear the fields ($name == '', $name == null)
Thanks
使用autocomplete =“ off”禁用浏览器填充表单输入。
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.