0
I own two camps:
<label>Imagem do perfil:</label>
<input><input type="file" value="<?php echo $img; ?>" name="img[]"/><br/>
<label>Senha:</label>
<input type="password" value="<?php echo $senha; ?>"/>
When refreshing the page, the "Profile Image" field is filled with the cached "X" user, and likewise the password. Being that the right one would be, the field "Profile picture" be null and the "Password" filled with the user’s "Y".
Obs.:
1st I am logged in with the user "Y".
2nd This occurs when the variable $img
is empty or the value
of the null input.
3ª I have other passwords identical to the user’s "Y" stored in cache.
field "profile picture"? Wouldn’t be the input value field of the label "Profile picture"?
– user60252
Yes, for the user the field is: "Profile picture", so the double quotes. rs'
– lucasbento
hehehe, but we are not users, kkk
– user60252
see this post https://answall.com/questions/61510/como-remover-auto-complete-de-input-do-google-chrome
– user60252
that $password comes from a Session?
– user60252
@Leocaracciolo really the gambiarra worked, but there is some update, given that the "Update 2017" solution does not work?
– lucasbento
has this gambiarra also autocomplete="new-password" <input type="password" value="<? php echo $password; ? >" autocomplete="new-password" />
– user60252
@Leocaracciolo, the password comes from the comic book, because it is not safe to store critical data in sessions, right? Already about the
autocomplete="new-password"
, didn’t work.– lucasbento
Ta using Chrome? Is the user’s password and img recorded in the Chrome password manager? This manager has problems with password field, he understands that the previous field of the password will always be the login and fill even if it is with autocomplete off. You can place a hidden password type field in the middle of the form that Chrome will lose and will not fill in any field.
– Bruno Folle
@Brunofolle, was exactly what I thought. rsrs' Thanks for the comment.
– lucasbento