Jump to content

Form timer on form load


gnawz

Recommended Posts

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

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.

Archived

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

×
×
  • Create New...

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.