Jump to content

Archived

This topic is now archived and is closed to further replies.

wishes4u

php timer

Recommended Posts

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

Share this post


Link to post
Share on other sites
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:
[code]<input name="time" type="text" value="<?= $_POST['time']; ?>">[/code]

Would do on each page.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.