I have a counter that works like this... <see code below>
When I try the same script in a while loop, instead of a for loop, the whole page has to reload. So the result is you don't see the counter going up in the while loop like you do in the for loop...
Is there a way to make this work in a mysql while loop?
------- START CODE ------------------
<html>
<head>
</head>
<body>
<input name="sent" type="text" id="sent" value="0">
<?
for($i = 0; $i <= 10000; $i++){
echo "<script>this.sent.value='$i'</script>\n";
flush();
} // for
?>
</body>
</html>