Form Posting from script
| From: | GeneralX | Date: | Tue, 13 Aug 2002 17:53:59 +0000 |
| Subject: | Form Posting from script | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-112417@lists.php.net to get a copy of this message | ||
How do you post a form without actually waiting for submit button to be pressed? Got a CGI
expecting a form post, all the fields are already available as hidden type in a form, and just need
to be send it.
I know you can use Java as such:
<form method="post" action="CGI.php">
<input type="hidden" name="FName" value="myFirstName">
</form>
<script type="text/javascript">
document.forms[0].submit();
</script>