I have a website, and when I tell Firefox to remember my username and password for the website, it is causing the username and password to display in all forms on my website, such as registration form. It is only supposed to do this on the login form. Does anyone know a fix for this?
+3
A:
This is because you have given the form fields identical names, e.g. username/password. If you add this it will prevent the autofill:
<input type="text" autocomplete="off" name="foo" />
seengee
2010-05-26 13:08:46
A:
Give the login form's input elements a different name.
[FF] uses the usernamefield/password field values as hints to find the appropriate elements within a webpage by matching them to the "name" attribute.
Alex K.
2010-05-26 13:09:00