It's pretty easy but can be confusing if you're looking at this stuff for
the first time.  Look into fsocketopen() and fputs().  You can use Rasmus's
posttohost() function if you're not comfortable writing your own.  Do a
search on www.php.net.  Hope this helps.
-Kevin

----- Original Message -----
From: "GeneralX" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 13, 2002 11:53 AM
Subject: [PHP] Form Posting from script


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>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to