JosephHanh Posted February 24, 2015 Share Posted February 24, 2015 Need little help with the quiz problem.I want to set time limit for each question in quiz module (say 30 seconds) and after that time, theform will auto submit the question (auto submit = no option selected = unanswered).There are 3 questions, so total time limit is 90 sec (30 sec each).I'm doing this via XAMPP.The link below provide the work so farhttps://www.dropbox.com/s/4dzlgjtjzvs48vw/quiz.rar?dl=0Thanks Link to comment https://forums.phpfreaks.com/topic/294859-auto-submit-form/ Share on other sites More sharing options...
cyberRobot Posted February 24, 2015 Share Posted February 24, 2015 You could look into using setTimeout() for the timer: https://developer.mozilla.org/en-US/docs/Web/API/WindowTimers/setTimeout Then use submit() to submit the form: https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/submit Link to comment https://forums.phpfreaks.com/topic/294859-auto-submit-form/#findComment-1506600 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.