Jump to content


Photo

php timer


  • Please log in to reply
1 reply to this topic

#1 wishes4u

wishes4u
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 09 July 2006 - 03:59 AM

i need to implement a timer for a quiz in php.....the questions appear on different pages...so i also need to pass the remaining time to the next page...can anyone please help...thank u

#2 Nhoj

Nhoj
  • Members
  • PipPipPip
  • Advanced Member
  • 223 posts
  • LocationClearwater, FL

Posted 09 July 2006 - 05:26 AM

I'd suggest using a form and keep using the same time as a $_POST value.

On the first page create the time and show it or keep it hidden, either way, and put it in a form. When the user submits the form to continue to the next page have another form on the next page catch that same time.
Something like:
<input name="time" type="text" value="<?= $_POST['time']; ?>">

Would do on each page.
Avid PHP Developer, need some work done? Send a PM ;)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users