Display a "Waiting Message" before the POST form send

Posted by DomingoSL on Stack Overflow See other posts from Stack Overflow or by DomingoSL
Published on 2010-04-21T02:18:05Z Indexed on 2010/04/21 2:33 UTC
Read the original article Hit count: 462

Filed under:
|
|
|
|

I have a upload file form, when you hit Submit it send the file to my server, but it takes a while, in the mean time i need to tell the user wait in order to get the file uploaded, because he can press Submit again because there is no menssage to prevent him.

So, the user fill a few fields in the form, including a file. When he Send the form it sends the variables via POST to the same page:

<form action="<?php echo $_SERVER['PHP_SELF']; ?>" enctype="multipart/form-data" method="post">

A php script detect the page now have POST variables a do something. In the time between the send action and the page reload i need to display a mensage, how can i do that??? Thanks


It will be nice if you now how to trigger that with colorbox. I know how to use it from a link but no from this POST action.

© Stack Overflow or respective owner

Related posts about php

Related posts about post