I built a simple user registration form using Xtml, php Myadmin.i expect all the field to blank prior to inputing data.But each time i refresh the user registration page some field on the form will be pre filled. . What should i do so that form field should be blank prior to inputing data?
Asked
Active
Viewed 69 times
-1
-
4It may be your browser autofilling forms? – David Feb 28 '18 at 16:54
-
This was all about symfony? Huh... ok. Nevermind! – IncredibleHat Feb 28 '18 at 17:04
1 Answers
-1
You can use the autocomplete
tag like this
<input type="text" name="bar" autocomplete="off" />
To turn this browser behaviour off. Be aware that this does not work completely at some Firefox versions.

Niki van Stein
- 10,564
- 3
- 29
- 62
-
1Setting to 'false' is more widespread support. (or some random string other than 'off'). – IncredibleHat Feb 28 '18 at 16:58
-
-
Unsure the downvote, but more info is found here too: https://stackoverflow.com/a/30081850/2960971 – IncredibleHat Feb 28 '18 at 17:02
-
@IncredibleHat thanks, and indeed.. people like to downvote apparently.. – Niki van Stein Feb 28 '18 at 17:03