This is a discussion on Calling cgi post form from within php within the PHP General forums, part of the PHP Programming Forums category; Hi, does anyone know how to call a cgi script and pass along a post-form from within php? Thanks, ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--- Thomas Andersen <tandersen@hometowntechnologies.com> wrote:
> does anyone know how to call a cgi script and pass along a > post-form from within php? You can use cURL (if you compiled with the cURL extension), any one of the HTTP* PEAR classes (see http://pear.php.net/), or do it manually: http://shiflett.org/hacks/php/http_post Hope that helps. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security Handbook Coming mid-2004 HTTP Developer's Handbook http://httphandbook.org/ |
|
|||
|
Hello,
On 01/10/2004 04:46 PM, Thomas Andersen wrote: > does anyone know how to call a cgi script and pass along a post-form from > within php? You may want to try this class. It comes with an example to post a form to a remote server, exactly as you ask: http://www.phpclasses.org/httpclient -- Regards, Manuel Lemos Free ready to use OOP components written in PHP http://www.phpclasses.org/ |
|
|||
|
Thanks for your help guys, I got it working.
Thomas "Thomas Andersen" <tandersen@hometowntechnologies.com> wrote in message news:20040110184616.4831.qmail@pb1.pair.com... > Hi, > > does anyone know how to call a cgi script and pass along a post-form from > within php? > > Thanks, > Thomas |