Browser remembers password in registration form.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gth759k
Forum Commoner
Posts: 76
Joined: Mon Jun 15, 2009 3:04 am

Browser remembers password in registration form.

Post 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?
gth759k
Forum Commoner
Posts: 76
Joined: Mon Jun 15, 2009 3:04 am

Re: Browser remembers password in registration form.

Post 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.
Turv
Forum Commoner
Posts: 25
Joined: Fri Mar 13, 2009 3:56 pm

Re: Browser remembers password in registration form.

Post by Turv »

Using the HTML Autocomplete attribute should prevent the browser from pre-filling the password field.

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