wishes4u Posted July 9, 2006 Share Posted July 9, 2006 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 Quote Link to comment https://forums.phpfreaks.com/topic/14075-php-timer/ Share on other sites More sharing options...
Nhoj Posted July 9, 2006 Share Posted July 9, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/14075-php-timer/#findComment-55031 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.