Page 1 of 1

Browser remembers password in registration form.

Posted: Mon Jun 15, 2009 3:12 am
by gth759k
Ok, I've tried a bunch of ways to fix this, but nothing I try works. So, the problem is, on my web page I have a registration and log in form. In both forms, there is a field for the email and password and they have unique names, but when I choose to remember the email and password in the browser when I log in, it also remembers it in the registration form. Does anyone know why this is or how to fix it?

Re: Browser remembers password in registration form.

Posted: Mon Jun 15, 2009 4:43 am
by gth759k
I found a work around; I just made a javascript function that determines the class name and if it has a certain name, I just set the value to blank.

Re: Browser remembers password in registration form.

Posted: Mon Jun 15, 2009 6:56 am
by Turv
Using the HTML Autocomplete attribute should prevent the browser from pre-filling the password field.

http://www.htmlcodetutorial.com/forms/_ ... PLETE.html