hi,
Is there a way to show the percentange as a web page is loading once a user hits a submit button?
thanks,
Not inside of PHP. First, PHP is SERVER-SIDE only. Once ALL of it’s processing is completed,
it then ships the resulting code to the browser. So, this can not be done in standard PHP.
Now, there are some ways to do this. If a submit button is pressed, normally it submits the form
to the server and the server does it’s stuff. You can use Javascript instead to handle submitting
the form. In this manner, you can monitor the upload. There are many many libraries to do this
type of entry for you. Some are very small and just get the job done. Others are large full featured
with tons of options. These are usually done with JQuery and AJAX. Basically, AJAX does the form
sending and you can monitor it’s process.
Tell us what you are sending in your form and we can show you samples of how to do it…