I know to use timer but tell me how can i allow submit button to submit the data by using javascript in specific time.
Will auto submit the form at the allotted time in seconds, see below. </head> <body> <form name="myform" method="get"> <p><input type="text" size="8" name="start" /></p> </form> <script type="text/javascript"> function myfunc () { var frm = document.getElementById("myform"); // myform is the name of your form frm.submit(); } window.setInterval ("myfunc()", 60000); // equals 60 seconds so two hours must be 7200000 ? </script> PHP:
It's best to do it in cron. But if you're just going to use it for personal reason, then there should be no problem doing it in js. One drawback I could think of is that you have to keep your browser and computer on.. lol