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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:04:24+00:00 2026-05-23T00:04:24+00:00

I’m working on an intermediary form that will gather some data from the user

  • 0

I’m working on an intermediary form that will gather some data from the user submitted form, and then re-build the form and send it to our authorizer in the appropriate format. Everything is working fine except that I cannot get it to submit this secondary form automatically. I have read several other posts on SO regarding this issue, but they all seem to be requiring a trigger to then submit the form, which mine does not. I simply require it to submit, and my jQuery seems to be taking a nap.

...data gathered here...

echo "<html><head></head><body>";

echo "<form id='forwarderForm' method='post' action='https://www.beanstream.com/scripts/process_transaction.asp'>";

    //rebuild the form to send to beanstream
    $keys = array_keys($_POST);
    for($i = 0; $i < count($_POST); $i++) {
        $currentKey = $keys[$i];
        $currentPost = $_POST[$currentKey];
        echo "<INPUT TYPE='hidden' NAME='" .$currentKey. "' VALUE='" .$currentPost. "'>";
    }
echo "</form>

<script type='text/javascript'>

$('#forwarderForm').submit();

</script></body></html>  ";

I have also tried removing the jQuery from the PHP echo, but this does not work either. when using a standard submit button to send the form, everything works fantastic, but I can’t get it to submit by itself.

I added the HTML/HEAD/BODY tags later because I was unsure if they mattered for the purposes of a simple form construct/submit, but this did not appear to change anything.

any comments, suggestions and advice is greatly appreciated. I know it’s probably something very simple that’s eluding me, so your help is appreciated.

  • 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-23T00:04:24+00:00Added an answer on May 23, 2026 at 12:04 am

    You will need to add this in a document.ready clause, like this

    <script>
    $(document).ready(function () { $('#forwarderForm').submit(); } );
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

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.