views:

71

answers:

2

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
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.

https://wiki.mozilla.org/Firefox%3aPassword_Manager

Alex K.