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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:49:08+00:00 2026-05-27T05:49:08+00:00

To post data to a remote payment server, my website generates a page that

  • 0

To post data to a remote payment server, my website generates a page that looks like this:

<html>
  <head>
  </head>
  <body onload="document.form1.submit()">
    <form name="form1" method="post" action="https://secure.paymentsite.com/purchase" >
      <input type="hidden" name="instId" value="1">
      <input type="hidden" name="itemId" value="23">
      <input type="hidden" name="currency" value="USD">
      <input type="hidden" name="amount" value="9">
    </form>
  </body>
</html>

I generate a page like this so that I can log the choice the user has made to my database before redirecting the user to an external site to pay.

However, it takes around 6 seconds for the form to be submited once the page loads. During this time, the user is displayed a plain white screen, and may wonder if the website is broken.

Is it possible to make a form that submits as soon as the page has loaded?

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

    jquery’s $(document).ready(function(){….} executes when the DOM has finished loading. That would be one of many solutions.

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

Sidebar

Related Questions

The HTML that is rendered seems right: <a href=/foo/add data-method=post data-remote=true rel=nofollow><img src=/assets/icons/example.png></a> Inspite
The HTML form: <form id=newsletter method=post action=/subscribers data-remote=true> <label for=email>Enter your email:</label> <input type=text
I have the following code used to post data to a remote server: NSString
We have an application using HttpWebRequest to post data to a remote server, over
I need to POST some XML data to a remote server for processing. The
I'm using httpc:request to post some data to a remote service. I have the
passing post data using cURL requires that the name of the input. However, I
How can I http post data to any page in the web in Classic
Django code samples involving post data often shows code similar to this: if request.method
I want to send form data using POST method to a remote URL using

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.