You are here: Re: Timers in php? « PHP Programming Language « IT news, forums, messages
Re: Timers in php?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация