Re: Timers in php?
- From: Jerry Stuckle <jstucklex@xxxxxxxxxxxxx>
- Date: Wed, 30 Jan 2008 23:06:28 -0500
fb wrote:
Hello. I was working on a .php page that asks a user a question, then, after the submit the answer (multiple choice) it takes data from a database and makes a new question. Let's say that they have 10 questions to answer. I'd like to give them a time limit to answer these 10 questions. I was wondering if it is possible to make a timer in php, that counts down and won't reset every time a new question is pulled from the database (it seems this causes a refresh).
If this is possible, could you please point me towards some code snippets? Many thanks
fb
While you probably could do it in PHP (i.e. set a cookie with the current time and check it when they answer), it might be better done with client-side scripting, i.e. javascript.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.
- References:
- Timers in php?
- From: fb
- Timers in php?
- Prev by Date: Rotate 3D Imagen in PHP GD ?
- Next by Date: Re: smarty.net down
- Previous by thread: Timers in php?
- Next by thread: Re: Timers in php?
- Index(es):
Relevant Pages
|