2

This is login form

<form method="post">
    <input name="username" type="text" />
    <input name="password" type="password" />
</form>

After login and save password by Browser, i go to users manage page

<form method="post">
    <input name="email" type="text" />
    <input name="name" type="text" />
    <input name="password" type="password" />
</form>

This page, browser show password and username by default to name and password

How fix it ?

https://i.stack.imgur.com/uniJY.jpg

https://i.stack.imgur.com/7ZbTJ.jpg

Omid
  • 31
  • 4

3 Answers3

0

Use different names in input tag How do you disable browser Autocomplete on web form field / input tag?

Community
  • 1
  • 1
Shubham Agrawal
  • 559
  • 6
  • 15
0

Used autocomplete attribute of tag. read this link:https://www.w3schools.com/tags/att_form_autocomplete.asp

Team Work
  • 35
  • 1
  • 7
  • autocomplete for only input. this username and password saved by browser "manage password" – Omid May 08 '17 at 11:40
  • Hello @omid set id to your textbox value and call javascript onload function like this: function f1() { document.getElementById('email').value=""; document.getElementById('name').value=""; } – Team Work May 08 '17 at 12:20
0

Autocomplete. autocomplete="off|on".

"When autocomplete is on, the browser automatically complete values based on values that the user has entered before." link

<form method="post" autocomplete="on">
    <input name="email" type="text" />
    <input name="name" type="text" />
    <input name="psw" type="password" />
</form>

You shouls also use different input names.

AutoTester213
  • 2,714
  • 2
  • 24
  • 48