RE: [PHP] Getting Information from a CGI POST
| From: | Jason Murray | Date: | Mon, 02 Jul 2001 03:48:12 +0000 |
| Subject: | RE: [PHP] Getting Information from a CGI POST | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-55776@lists.php.net to get a copy of this message | ||
> Can this be done? If so, can someone point me in the right direction?
> Specifically, how to get the CGI Post data returned from thier server?
As a starting point, grab their form, including all the javascript
associated with it, and put it onto your own page.
Change the <FORM> tag to submit to a PHP script, and in that PHP
script put <? phpInfo(); ?> ... look at the data you get in,
in either $HTTP_POST_VARS or $HTTP_GET_VARS and write a PHP
script to replicate that data. Then, use PHP's curl functions
to post or get that data to the remote CGI script.
This would be hard to do for every airline though, since they all
have different online forms.
Jason
--
Jason Murray
jasonm@melbourneit.com.au
Web Developer, Melbourne IT
"Work now, freak later!"