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

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -