Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7552261
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:42:58+00:00 2026-05-30T10:42:58+00:00

My form is attached below, and I have tried many things I’ve found in

  • 0

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>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T10:42:59+00:00Added an answer on May 30, 2026 at 10:42 am

    Try to clean the HTML a bit, maybe it helps:

    <form id="frmlogin" action="/index" method="post">
        <label id="landing_username" class="required" for="username">Username/Email</label>
        <input id="username" name="username" type="text"  />
        <label id="landing_password"  class="required" for="password">Password</label>
        <input id="password" name="password" type="password" />
        <input id="loginbtn" onclick="LoginFun()" type="submit" name="loginbtn" value="Login" />
     </form>
    
    • the form attribute enctype is by default application/x-www-form-urlencoded so you don’t need to specify it
    • the labels for attribute should contain the id, not the name of the associated input
    • element IDs should be unique
    • the attribute name is defined twice for both password and username
    • the attribute autocomplete is by default on
    • the input value is not required, so you don’t need to add it to the inputs with an empty string
    • the submit button should be an input of type submit

    Some 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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have built a simple registration form shown below and Iam trying to get
I have created a list form that gets attached to a main form in
Having a popup menu attached to several components on a form (buttons, but also
I have a complicated nested form (Ryan Bates' version) with .live() attached to some
I have to event handlers attached to a form. The first one that fires
I have to event handlers attached to a form. The first one that fires
I have a page with more than one form. One form (see below example)
I have designed a form which has code behind attached to IT. I have
A form I don't have any control over is POSTing data to my PHP
I have seen similar questions which attempt to solve this issue, but none seem

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.