Sending a POST-message
| From: | Björne | Date: | Thu, 24 Jan 2002 15:03:47 +0000 |
| Subject: | Sending a POST-message | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-81889@lists.php.net to get a copy of this message | ||
Hi!
I wonder how I can send a POST-command to a server, via a PHP-script instead
of a form.
Imagen that I have this form:
<form action="/request.php" method="POST">
Name: <input type="text" name="reqName"><br/>
E-mail: <input type="text" name="reqEmail"><br/>
<input type="submit">
</form>
Now I want to send a command to the /request.php, and formate the returned
data - via a PHP-script.
Should I use sockets or fopen? Or something else? This would be easy if I
could use the GET-method, but unforntuatly I can't.
Best regards,
Björn Wikström
bjorne@command.nu