Updating a progress bar during php scripts
Live Demo Download Source At first we need to create a simple file upload form.
But we need to do some modification with our file upload form and our php script to handle multiple files.
If you ask an average web-developer if it's possible to make a running progress bar on the web-page while it's loading(! This is understandable as practically all web-pages do not exhibit such progress bars and are in a sense "static" - the whole web-site is dynamically generated from a database, but each page is static except for AJAX changes due to user actions.
Here I will show how a lengthy PHP process can show a running progress bar while the page is loading.
/* when the submit button is clicked we will hide the message div.
get the input provided by user and start processing.