Re: converting GET to POST
| From: | Lee Doolan | Date: | Thu, 16 Oct 2003 21:48:37 +0000 |
| Subject: | Re: converting GET to POST | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-166363@lists.php.net to get a copy of this message | ||
>>>>> "Marek" == Marek Kilimajer <kilimajer@webglobe.sk> writes:
>>>>> "Kris" == Kris Yates writes:
Marek> You can do it this way:
Marek> <form
Marek> action="https://www.fake.com/fake.php">
Marek> <input type="hidden" name="item" value="<?= $item
Marek> ?>">
Marek> <input type="submit">
Marek> </form>
Actually, I think that if you do it this way, someone will have to
click on the submit button. If you want to redirect with a post, then
look in to using the CURL library.
Marek> Kris Yates wrote:
Kris> Currently, I am posting via GET to third party server as seen below:
Kris> $item=urlencode($item);
Kris> header("Location: €,
Kris> jìX{Ëpäí™Øihttps://www.fake.com/fake.php?item=$item");
Kris> I want to reconfigure my header calls to POST instead of using GET
Kris> for sending $item to third party server. Is this doable?
Kris> Thank you,
Kris> Kris
Kris>
--
no toll on the internet; there are paths of many kinds;
whoever passes this portal will travel freely in the world