Jump to content

can someone tell me what I am missing here


affordit

Recommended Posts

I am trying to get this form to auto submit after 5 minutes, but don't work.

<script language=javascript type=text/javascript>
<!-- Script courtesy of http://www.web-source.net - Your Guide to Professional Web Site Design and Development 
function stopRKey(evt) {
   var evt = (evt) ? evt : ((event) ? event : null);
   var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
   if ((evt.keyCode == 13) && (node.type=="text")) {return false;}
}

document.onkeypress = stopRKey; 
-->
</script>
<script language=javascript type=text/javascript>
setTimeout("submitForm()", 60000);

function submitForm()
{
    document.5_min_test.submit();
}
</script>
<?php
print "
<form name = '5_min_test' action='print_results.php' method='POST'>
<table align='center' border='0'>
<tr>
<td align = 'left'>Name:</td><td><input type='text' name='name' size='30' maxlength='100'></td>
</tr>
<tr>
<td align = 'left'>Email:</td><td><input type='text' name='email' size='30' maxlength='100'></td>
</tr>
</table>
</form>";
?>

Link to comment
Share on other sites

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.