gnawz Posted June 19, 2007 Share Posted June 19, 2007 Hi. I need time a form for 10 mins after it has loaded. This way, a user has 10 mins to work on a form. If they elapse, it displaysa warning alert preferably in javascript and when the user clicks ok, they have to fill in information or a note in a textbox as to why they did not finish in the required time. After the warning, the timer adds about 3 more minutes or starts counting the extra minutes of tardiness. Please help... Link to comment https://forums.phpfreaks.com/topic/56178-form-timer-on-form-load/ Share on other sites More sharing options...
Dragen Posted June 19, 2007 Share Posted June 19, 2007 you could try using sessions. When the page loads save a session with the timestamp, then when they submit the form compare the timestamp with the current time. If there's a gap of more than 10 minutes, then force them to fill out a textbox to explain, with another submit button. When they submit that it sends the form along with the first form as hidden inputs. Also have a hidden input with the time they took. Link to comment https://forums.phpfreaks.com/topic/56178-form-timer-on-form-load/#findComment-277492 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.