Countdown timer in php using mysql -


i want countdown timer countdown minutes in form page. when countdown ends redirect specific page..

i trying create quiz page submit when countdown ends.please me that... thankyou...

you have use javascript on client side auto submit form.

the code javascript this

<script type="text/javascript">  $(document).ready(function() {    settimeout(function(){       $('#quizform').submit();     },10000); }); </script> 

and form this..

<form action="postquiz.php" method="post" id="quizform"> 

edit: keep in mind client side, ( can cheated ) still need how validate time on server side. use timestamps ( 1 before starting question , 1 after submitting, go checking if time okay )


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -