RE: [PHP] Post without submit?
| From: | DanO | Date: | Thu, 25 Jan 2001 23:24:27 +0000 |
| Subject: | RE: [PHP] Post without submit? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-36726@lists.php.net to get a copy of this message | ||
yes, with javascript:
<script>
function sendIt(form) {
form.submit();
return true;
}
function startIt() {
setTimeout('sendIt(document.formName)',3000);
}
</script>
<body onload="startIt();">
<form method=post action=someScript name=formName>
<input type=hidden value=turkey name=bacon>
</form>
timeout is in milliseconds.
you could alternately pass document.formName directly to sendIt.
HTH,
DanO
> -----Original Message-----
> From: Chris [mailto:chrisderson@ameritech.net]
> Sent: Thursday, January 25, 2001 9:23 PM
> To: PHP
> Subject: [PHP] Post without submit?
>
>
> is there anyway to post without clicking a submit button?
>