Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.