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 6706771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:33:35+00:00 2026-05-26T07:33:35+00:00

So lets say I have some forms like this: Form A: <form name=formA> <input

  • 0

So lets say I have some forms like this:

Form A:

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

Form B:

<div style="display:none;">
  <form name="formB">
    <input type="text" name="username">
    <input type="text" name="password">
  </form>
</div>

Form C:

<div style="display:none;">
 <form name="formC">
    <input type="text" name="username">
    <input type="text" name="password">
 </form>
</div>

Forms B and C are hidden, I have them there because after a user enters their username and password in form A, I need to also use that username and password information they submitted to be used in forms B and C, and then submit all forms at once. This is so I can submit a login to multiple parts of my website using just 1 login form. How exactly should I go about doing this?

-Thanks!

  • 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-26T07:33:35+00:00Added an answer on May 26, 2026 at 7:33 am

    If you don’t need https for login function, you can try this using jQuery and ajaxForm plugin:

    <form name="formA" action="actionA">
      <input id="usernameA" type="text" name="username">
      <input id="passwordA" type="password" name="password">
    </form>
    
    <div style="display:none;">
      <form name="formB" action="actionB">
        <input id="usernameB" type="text" name="username">
        <input id="passwordB" type="password" name="password">
      </form>
    </div>
    
    <div style="display:none;">
      <form name="formC" action="actionC">
        <input id="usernameC" type="text" name="username">
        <input id="passwordC" type="password" name="password">
      </form>
    </div>
    
    
    $('#formA').submit(function() {
        var username = $('#usernameA').val();
        var password = $('#passwordA').val();
    
        $('#usernameB').val(username);
        $('#passwordB').val(password);
        $('#usernameC').val(username);
        $('#passwordC').val(password);
    
        $('#formB').ajaxForm(function() { 
            alert("You have been logged in at B"); 
        });
        $('#formC').ajaxForm(function() { 
            alert("You have been logged in at C"); 
        }); 
    });
    

    When you send an ajax request to the server for login at B and C, if your server send back a cookie on successful login, I think you’re good to go 😛

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

Sidebar

Related Questions

Lets say I have CSS like this: div.form label input { /* some css
I have a name in a database, lets say its DFectuoso and some legacy
Let's say I have some code like this: <html> <head><title>Title</title></head> <body> <?php if (!$someCondition){
Let's say I have some code like this if(isset($_GET['foo'])) //do something if(isset($_GET['bar'])) //do something
Let's say I have some XML like this <channel> <item> <title>This is title 1</title>
Let's say I have this Form in my forms.py: CATEGORY_CHOICES= ((1,'Cat1'), (2,'Cat2'), (3,'Cat3'), (4,'Cat4'),
This one is driving me crazy:-) Lets say I have some test xaml code:
lets say i have a main form which have a lot of functionallity. this
Lets say we have some basic AR model. class User < ActiveRecord::Base attr_accessible :firstname,
Lets say I have one row with three columns - some buttons on left

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.