Forum Moderators: open
<input type="text" name="nick-<?=$random_code?>" maxlenght="16" class="nick"> <input type="password" name="password-<?=$random_code?>" size="18" class="password">
Today I received a message from one of my users with a question how to turn off data saving in login form. The user says that her nickname and password appear in login form when she opens my website.
I don't know how is it possible because I did make tests in some browsers and form data was not saved.
Does it mean that random field names can't prevent from data saving in forms?
Thanks.
instead of sticking the normal
isset($_POST['nick']) kind of thing in the value attribute the first time the form loads, just write a default message instead, or a blank space, unless they've got the cookie.
No, there is no "remember me" button. I just did make one more test. I changed the settings in Internet Explorer and Firefox. I checked all options to save user names passwords, forms. Restarted browsers. Logged in/out to my website. Closed both browsers and opened them again. The login form is empty. I can't understand how is possible that for one user browser saves form data.