CodeIgniter Forums
Prevent autofill fields - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Prevent autofill fields (/showthread.php?tid=12206)



Prevent autofill fields - El Forum - 10-10-2008

[eluser]hykoh[/eluser]
Its not a direct CI question, but i like this community ... Wink

So; is it possible to prevent autofilling of form fields ? for example: if a user login to Community XXX, the browser saves the password for fieldname "password" and it gets automatically filled in every "password" named field, even at Community YYY.

I hope u can follow my explaination



* I always got the same first level domain, only different subs


Prevent autofill fields - El Forum - 10-10-2008

[eluser]Yash[/eluser]
choose some wired name for password and login .Don't use standard.

<input type="text" name="my_wired_passwordbox" ...and so on

No auto filling ever.


Prevent autofill fields - El Forum - 10-10-2008

[eluser]Colin Williams[/eluser]
What God-awful browser or browser plugin autofills passwords into password fields, even across domains!?

Actually, you probably have the input type set incorretly, just like Yash's poor example. Be sure 'type' is of 'password'

Code:
<input type="password" name="password" />



Prevent autofill fields - El Forum - 10-10-2008

[eluser]xwero[/eluser]
i had a server once that set a random value for the input password type tag and as mentioned all i had to do is change the name of the input.