Hi:
I have a long php process. When the user submits the page to start the process, I want to show him a different page with a JS or an animated gif or somethin like that, so he can't start the process again. Also, this page informs the user about the long process.
To achive this, I wrote an intermediate page
that only have an animmated gif and a little code that follows:
<head>
<script language="JavaScript">
<!-- hide
function sendInfo() {
document.forma.submit();
}
-->
</script>
</head>
<body onload="sendInfo()">
<!-- The animated gif
<img src="prueba.gif" border="0" alt> <br>
-->
<form name="forma" id="forma" action="regUser3.php" method="post">
<?php
foreach($HTTP_POST_VARS as $key => $value) {
echo("<input type=\"hidden\" name=\"$key\" value=\"$value\">\n");
}
?>
</form>
</body>
As you can see, this code creates a new form with all the posted vars as hidden inputs, and inmediatly, on the onload body event, it send the vars to the server.
The problem is that the animated gif never plays, because as the form post the data, it begun to load the second page showing the gif of this page but no animatios. The effect is the same with JS animatios.
How can I achive the effect I need?
Thanks al ot