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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T20:51:06+00:00 2026-06-05T20:51:06+00:00

i am trying to submit 2 forms at the same time im trying to

  • 0

i am trying to submit 2 forms at the same time
im trying to send 1 form to my DB and the other to a different site

my code is like :

function submitform(){
    document.forms["form2"].submit();
    document.forms["form1"].submit();

}

 

<form name="form1" action="1.php" method="post">
    <!-- ... -->
</form>

<form name="form2" action="2.php" method="post" target="foo">
    <!-- ... -->
</form>

<a onclick="submitform();">Go</a>

now if i submit only form2 it opens in a new tab and works but when i try to submit both of them it only submits form1
i have no idea why

any help would be appreciated

thank you

  • 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-06-05T20:51:08+00:00Added an answer on June 5, 2026 at 8:51 pm

    Marc B‘s comment

    You can only submit a single format at a time. You’ll have to combine the forms into a single one somehow prior to submission.

    is the answer for me.

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

Sidebar

Related Questions

I am trying to submit a form with ajax. Here is my complete code
I'm trying to define two eventhandlers for the same form in two different places.
I'm trying to make two forms that aren't displayed at the same time. The
I'm trying to login to a class site, but every time I submit the
I'm trying to submit a few forms through a Python script, I'm using the
I am trying to submit a form with jQuery and I must be missing
I am trying to submit a form with method GET and action index.php?id=3. The
I'm trying to submit a form on an .asp page but Mechanize does not
I'm trying to submit a form to a php page that contains a WP_QUERY,
I am trying to submit a form automatically without the need to press the

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.