RE: Re[5]: [PHP-WIN] Preventing multiple submits
| From: | Manuel Lemos | Date: | Wed, 30 Aug 2000 02:11:07 +0000 |
| Subject: | RE: Re[5]: [PHP-WIN] Preventing multiple submits | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-2280@lists.php.net to get a copy of this message | ||
Hello James,
On 25-Aug-00 12:57:38, you wrote:
>Is there an easy way to get PHP to immediately clear the screen at the start
>of a script, without waiting for the rest of the script to finish
>processing? If so then I can clear the screen immediately after the user
>clicks the submit button, which would prevent the user from going mad with
>the submit button!
Clearing the screen means that the server already outputted at least up to
the <BODY> tag of the page that processes submissions. Since PHP output is
buffered you need to flush the output to force the <BODY> to sent to the
browser ASAP. Use the flush() function for that.
Regards,
Manuel Lemos
Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?user=mlemos@acm.org
--
E-mail: mlemos@acm.org
URL: http://www.mlemos.e-na.net/
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
--