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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:57:26+00:00 2026-05-26T05:57:26+00:00

How can I set up an automated queue system to run multiple submits, one

  • 0

How can I set up an automated queue system to run multiple submits, one after another? I don’t want them to submit at once, or it may break my backend PHP script.

Here’s a simple example, assuming each form can submit independently, and a master submit will run all the forms in series.

<input type="submit" id="submit_all" value="Submit All" />

<form id="form-1" method="post" action="function.php">
<input type="text" name="foo" value="Foo" />
<input type="submit" value="Submit" />
</form>

<form id="form-2" method="post" action="function.php">
<input type="text" name="foo" value="Foo" />
<input type="submit" value="Submit" />
</form>

<form id="form-3" method="post" action="function.php">
<input type="text" name="foo" value="Foo" />
<input type="submit" value="Submit" />
</form>

UPDATE:

The script I’m working on is tool to backup the FTP files and MySQL dump of multiple websites – essentially an automated backup tool for web administrators.

Each form contains the values to connect to the FTP and MySQL of each site, and the PHP function copies and stores the files locally and creates a MySQL dump.

Copying the files can take 20+ minutes per site, so the idea is to create a ‘master button’ to automate each backup, one after the other.

  • 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-26T05:57:26+00:00Added an answer on May 26, 2026 at 5:57 am

    You can try this jQuery example. I coded it on the fly, so it’s not tested – but you get what I’m trying to do.

    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
    <script type="text/javascript">
    var state = false;
    
    $(document).ready(function() {
        $('#submit_all').click(function() {
            go();
    
            // get all forms on the page
            $forms = $('form');
            sent = 0;
    
            // post the form (non-async)
            $forms.each(function() {
                if(state) {
                $.ajax({
                    type: "post",
                    async: false,
                    url: $(this).attr("action"), 
                    data: $(this).serialize(), 
                    success: function(data) { 
                        if(++sent == $forms.length) {
                            alert("All forms submitted!");
                        }
                    }
                });
                } else { return false; }
            });
            stop();
        });
    
        $('#cancel').hide().click(stop);
    
        function go() {
            if(!state) {
                state = true;
                $('#submit_all').hide();
                $('#cancel').show();
                $('input[type=button], input[type=submit]').attr("disabled", "disabled");
        }}
    
        function stop() {
            if(state) {
                state = false;
                $('#submit_all').show();
                $('#cancel').hide();
                $('input[type=button], input[type=submit]').removeAttr("disabled");
        }}
    });
    </script>
    
    <input type="button" id="submit_all" value="Submit All" />
    <input type="button" id="cancel" value="Cancel" />
    
    <form id="form-1" method="post" action="function.php">
    <input type="text" name="foo" value="Foo" />
    <input type="submit" value="Submit" />
    </form>
    
    <form id="form-2" method="post" action="function.php">
    <input type="text" name="foo" value="Foo" />
    <input type="submit" value="Submit" />
    </form>
    
    <form id="form-3" method="post" action="function.php">
    <input type="text" name="foo" value="Foo" />
    <input type="submit" value="Submit" />
    </form>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As I understand, when using automated properties, one must write both set and get
Is there a good test suite or tool set that can automate website navigation
I can set the PHP include path in the php.ini : include_path = /path/to/site/includes/
I can set data in JTable constructor, and then user can change this data
I can set the minimum version required (for example XP SP3) in Inno-Setup by
I can set the relationship between View Model and view through following DataContext syntax:
You can set the Vim color scheme by issuing :colorscheme SCHEME_NAME but, oddly enough,
How can I set the flag FILE_FLAG_BACKUP_SEMANTICS for an fstream object? You can set
How can I can set a global variable for the username of the logged-in
In Eclipse I can set all kinds of preferences for coding style. I'd like

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.