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

  • SEARCH
  • Home
  • 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 7548903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:48:52+00:00 2026-05-30T09:48:52+00:00

It’s the normal thing to browser remember user and password information if the user

  • 0

It’s the normal thing to browser remember user and password information if the user actually clicked on the ‘rember page password’ (browser, not website feature).

I have this login form that I generate using an async call, something like:

$('#container').load('/path/file.php?what=login_form');

In this form, when submitted the browser doesn’t remember (and autofill it for me) even if I clicked on ‘yes, remember password’.

Does this mean that only URLable page forms will be remembered?

EDIT – output example

 <div class="caja loginBox">
        <form action="index.php" method="post" name="sesion" id="sesion">
        <h1>Inicio de sesion</h1><h2>Usuario</h2>
     <input type="text" id="nombre" name="nombre"/>
     <h2>Password</h2><input type="password" id="pass" name="pass"/><button type="submit" name="inicio">Entrar</button>
     </form> </div>
  • 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-30T09:48:55+00:00Added an answer on May 30, 2026 at 9:48 am

    I found a solution that works with the Firefox password manager. Depending on why you are loading the form dynamically, my solution may or may not help you. (More on that below.)

    First, put an invisible form (I used an inline style of “display:none”) on the page that uses the same method and action, and contains fields with the same names. You can put this below the div that will eventually contain the real form:

    <div id="container"></div>
    
    <div id="fake-form" style="display: none">
        <form action="index.php" method="post">
            <input type="text" name='nombre' class='nombre'/>
            <input type="password" name='pass' class='pass' />
        </form>
    </div>
    

    Then, in your JavaScript, after the content of the real form has been loaded, copy the values out of the fake form and put them into the real one:

    <script type="text/javascript">
        $(function() {
            $("#container").load("/path/file.php?what=login_form", function() {
                var fakeForm = $("#fake-form");
                $("#nombre").val(fakeForm.find(".nombre").val());
                $("#pass").val(fakeForm.find(".pass").val());
            });
        });
    </script>
    

    That said, if you’re going through this much effort to put a form on the page before you dynamically load the actual form, then why not just remove that last step and have the form on the page to begin with? 🙂 Presumably you have a good reason for doing this though. Maybe the form coming from the server has unique styling information, or dynamic error messages next to the fields, or i18n field names?

    However, if the form you’re pulling from the server has an action that varies for different users, then my trick won’t work because you have to know the action in advance when you build the hidden form.

    If that’s the case then maybe you could try my trick in reverse, and hide the “real form” you load from the server and display the fake form to the user. The fake form could post to a non-existant URL, but you could then use JavaScript to intercept the onsubmit of the “fake form”, copy the username and password into the invisible “real form”, invoke submit on the real form, and return false to prevent the original form submission from going through.

    Update: After thinking about it a little more, I don’t think my second solution would work, because the password managers almost definitely associate the username and password with the final URL that you actually submit the data to, rather than the initial action URL in the form that you would only be initially pretending to submit to. Anyway, hopefully my first solution will be adequate for what you’re doing.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I used javascript for loading a picture on my website depending on which small
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I need to clean up various Word 'smart' characters in user input, including but
public static bool CheckLogin(string Username, string Password, bool AutoLogin) { bool LoginSuccessful; // Trim
I need a function that will clean a strings' special characters. I do NOT
I have just tried to save a simple *.rtf file with some websites and

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.