DeathStar Posted April 2, 2007 Share Posted April 2, 2007 hi there. i want to let a form submit ever 2 seconds to test a thing with my server. how would i go about doing it? Quote Link to comment Share on other sites More sharing options...
papaface Posted April 2, 2007 Share Posted April 2, 2007 Use javascript, this is the PHP forum. Quote Link to comment Share on other sites More sharing options...
only one Posted April 2, 2007 Share Posted April 2, 2007 <table> <tr> <td style= align="center" width="250" height="20"> <font face=arial color=#000000 size=1><div id="message_html" class="messagehtml" }>Please enable javascript</div></font> </td> </tr> </table> <script language='Javascript'> setup=2; function countdown() { if ((0 <= 100) || (0 > 0)) { xsetup = setup--; if(xsetup == 0) { if (0) document.getElementById("messagehtml").innerHTML = 'blah'; if (0) document.getElementById("message_html").innerHTML = '<?php update here ?>'; countdown(); } if(xsetup > 0) { document.getElementById("message_html").innerHTML = '+xsetup+''; setTimeout('countdown()',1000); } } } countdown(); function SetCookie(cookieName,cookieValue,nHours) { var today = new Date(); var expire = new Date(); if (Hours==null || nHours==0) Hours=1; expire.setTime(today.getTime() + 3600000*Hours); document.cookie = cookieName+"="+escape(cookieValue) + ";expires="+expire.toGMTString(); } </script> this hasnt been tested! Quote Link to comment Share on other sites More sharing options...
DeathStar Posted April 2, 2007 Author Share Posted April 2, 2007 where wud i put the form? <form><input><form> Quote Link to comment Share on other sites More sharing options...
needshelp Posted April 2, 2007 Share Posted April 2, 2007 - Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.