|  | Posted by Jerry Stuckle on 01/31/08 04:06 
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@attglobal.net
 ==================
  Navigation: [Reply to this message] |