11
Hallo ich habe ein Problem und Zwar kann ich vor der Abgelaufenen Zeit schon auf Den Button Klicken
<?php
require('config.php');
include("header.php");
?>
<center>
<script type="text/javascript">
remainingseconds = 30;
function countdown()
{
if (remainingseconds == 30) {
document.Download.Button.click();
} else {
remainingseconds = remainingseconds - 1;
document.getElementById('countdown').innerHTML = remainingseconds;
}
}
window.setInterval('countdown()',1000);
</script>
<form method="post" action="download/up/<php $_GET['file'] ?>" name="Download">
<p>Verbleibende Sekunden: <span id="countdown">30</span></p>
<p><button type="submit" name="Download">Download</button></p>
</form>
<br>
</center>
</td></tr>
</table>
<?php include("footer.php");?>
<?php
require('config.php');
include("header.php");
?>
<center>
<script type="text/javascript">
remainingseconds = 30;
function countdown()
{
if (remainingseconds == 30) {
document.Download.Button.click();
} else {
remainingseconds = remainingseconds - 1;
document.getElementById('countdown').innerHTML = remainingseconds;
}
}
window.setInterval('countdown()',1000);
</script>
<form method="post" action="download/up/<php $_GET['file'] ?>" name="Download">
<p>Verbleibende Sekunden: <span id="countdown">30</span></p>
<p><button type="submit" name="Download">Download</button></p>
</form>
<br>
</center>
</td></tr>
</table>
<?php include("footer.php");?>