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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:31:22+00:00 2026-06-11T03:31:22+00:00

All, I have an HTML page that contains a form. When the user completes

  • 0

All,

I have an HTML page that contains a form.

When the user completes the form and clicks “Submit” – the form posts the user’s inputs to a PHP page.

That PHP page processes the inputs and returns the user’s results as an attachment.

So far – everything works OK – the user clicks “Submit”, the browser’s progress bar starts to “spin”, and after a few seconds, the attachment is downloaded.

However, in the browser – the user is still on the form page. That’s OK with me.

So – here’s my question. Ideally, when the user clicks “Submit” – I would like to update the form page to indicate that the “process” is in progress. E.g.,

  • disable the submit button to prevent redundant clicks
  • display a “downloading” message and a “spinner”-type graphic

Then, when the download is complete – I’d like to capture that event so that I could re-enable the submit button and remove the downloading message.

Is this possible?

Or – is my initial set-up just wrong? Is there a better way to do this? (That is – have a form that calls a PHP page, have the PHP page return an attachment, and then return control to the calling page?)

Thanks in advance for your advice and insight!

  • 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-11T03:31:23+00:00Added an answer on June 11, 2026 at 3:31 am

    Use javascript to open up the download in a new window. So don’t return the download in the POST request, simply let the page reload and put some javascript on the page that will open up a new window that will call your PHP script that will download the file.

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

Sidebar

Related Questions

I have a page which displays a form that a logged-in user can use
Hi I have a page that contains several different forms all of which are
I have a product management page that contains a textarea in which some html
I'm looking at creating a very simple HTML page that contains an HTML form
How to find all files in directory? I have HTML page in some directory.
I have an HTML page. I would like to extract all elements whose name
We have some html that looks like this: <form id=MyUserControl runat=server method=post> <script language=javascript
I have a page in JQuery mobile, which contains a form. The form has
I have a form on my page which contains two select dropdowns. The first
hi all i have a string text that may contains urls (this text is

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.