Click to See Complete Forum and Search --> : time limit on forms


mjs1988
06-22-2003, 11:11 PM
is it possible to put a time limit on a form so it expires/doesnt work after a certain date or after a certain amount of time

nkaisare
06-24-2003, 05:48 PM
Yes it is. Check for the current date and compare it with your desired expiration date. If the form has already expired, display an error message.

If you want that the form be submitted within certain amount of time after the page is opened (like in quiz), you may have a hidden field that contains the time the form was loaded. When form is submitted, check for the date/time again. The difference should be less than your desired expiration time... if not, display an error message.

This can also be done using javascript. Javascript would be easier and is more popular way of doing the latter (like in an online quiz or somehting). For the former, server-side script will be my choice.