My form is attached below, and I have tried many things I’ve found in other forums, but to no avail. I cant get the browser to prompt a ‘Save Password’. Where am I going wrong. Hope someone can help. Thanks.
<form id="frmlogin" action="/index" method="post" enctype="application/x-www-form-urlencoded" autocomplete="on">
<label id="landing_username" class="required" for="username">Username/Email</label>
<input id="landing_username" name="username" type="text" value="" name="username" />
<label id="landing_password" class="required" for="password">Password</label>
<input id="landing_password" name="password" type="password" value="" name="password" />
<submit id="loginbtn" onclick="LoginFun()" type="submit" name="loginbtn">Login</submit>
</form>
Try to clean the HTML a bit, maybe it helps:
enctypeis by defaultapplication/x-www-form-urlencodedso you don’t need to specify itforattribute should contain theid, not thenameof the associated inputnameis defined twice for both password and usernameautocompleteis by defaultonvalueis not required, so you don’t need to add it to the inputs with an empty stringSome of these changes are only optimizations and the code could work fine without them, but others, such as ensuring the unique id of each tag, are fixes and they are strongly recommended even if the browser displays the form properly.