Hi there:
How to submit a form in a given time? for example 30 seconds. when time is up , the form is automatically submitted.
Excuse me for my poor English.I am looking forword to your help! Thank you very much!
Joyy
This is a Javascript question, but...
Have an onload event handler in the body tag which submits the form after the appropriate timeout.
<body onload="setTimeout(document.forms[0].submit(),30000)">
it's a client side problem check the setTimeout() function in javascript javascript also has some useful functions for form submiting
Just remember that the 30 seconds can start counting as soon as the header is loaded. This could mean that the form has not fully downloaded yet if the user is using a slow modem, or if our server is slow, or if you use many heavy images. So I suggest you use another workaround.
Perhaps tell the script to start counting after the first field has been changed (using onFocus)
Generally, the onLoad handler fires when the page finishes loading (hence "onLoad"), though images aren't necessarily counted.
If you want you could attach the handler to an image tag - it will fire when the image is displayed.
Could you please help me to solve another problem which is described in the post with the subject "please help me to find a solution" in the coding help list?
Thank you very much!