Am a newbie in php,i want to set a countdown timer for online quiz in php.
when an student login,there wil be a home page and in home page there are two php pages like quiz.php and result.php, So When the studuent selects quiz.php,he will be redirected to quiz.php and he can answer the question given,when student select quiz.php and page is redirected to quiz.php,the timer should start and there should be a countdown of time also and the timer should be set to a certain time period,so when timer reaches 0,the quiz.php should appear blank and should be redirected to home page.where the student can see the result.
can someone please help out with the php code for this and how to implement it.
Welcome to DaniWeb. This looks very much like a homework assignment, which our members will be happy to help you with but not actually complete for you. So to move forward, you need to let us know exactly where you are having difficulties with your code (and you should share your code with us so we can see where the problem is) and what you don't understand...
hey thanks for replying,i have executed the below code:
Everything works well,and I've done where all questions get selected randomly from database one at a time,and i have kept each questions in different php pages,where the timer begins when the user login and start answering the first question,then when the user selects next question,the timer agains start from the beginning time,but i need the timer count to continuously displayed for all questions while user is taking the quiz.Can u please help out with this.