Page 1 of 1
applying time constraint in php
Posted: Mon Dec 15, 2008 5:30 am
by vapanchamukhi
i have written code for the generation of test paper. for that i have used html and php.. now when that test is given to a student to solve i want to put time constraint to that. so some body help how to do that... i am the newbie in php... please some body help me...
Re: applying time constraint in php
Posted: Mon Dec 15, 2008 1:30 pm
by califdon
vapanchamukhi wrote:i have written code for the generation of test paper. for that i have used html and php.. now when that test is given to a student to solve i want to put time constraint to that. so some body help how to do that... i am the newbie in php... please some body help me...
What do you want to happen? In other words, do you want the timer to begin when the browser opens the page or do you want to have a "Start Now" button or something? And what do you want to happen at the end of that time?
In any case, you can't do anything in PHP because there is no PHP in the file that is sent to the browser! It has all been executed in the server.
Whatever you want to do must be done with Javascript, which is a client-side script that executes in the browser.