Calling cgi post form from within php

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, ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-10-2004
Thomas Andersen
 
Posts: n/a
Default Calling cgi post form from within php

Hi,

does anyone know how to call a cgi script and pass along a post-form from
within php?

Thanks,
Thomas
Reply With Quote
  #2 (permalink)  
Old 01-10-2004
Chris Shiflett
 
Posts: n/a
Default Re: [PHP] Calling cgi post form from within php

--- 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/
Reply With Quote
  #3 (permalink)  
Old 01-10-2004
Manuel Lemos
 
Posts: n/a
Default Re: Calling cgi post form from within php

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/
Reply With Quote
  #4 (permalink)  
Old 01-12-2004
Thomas Andersen
 
Posts: n/a
Default Re: Calling cgi post form from within php

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

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:14 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0