Re: converting GET to POST

From: Date: Thu, 16 Oct 2003 22:00:31 +0000
Subject: Re: converting GET to POST
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-166364@lists.php.net to get a copy of this message
Lee Doolan wrote:
"Marek" == Marek Kilimajer <kilimajer@webglobe.sk> writes: "Kris" == Kris Yates writes:
    Marek> You can do it this way:
    Marek> <form action="https://www.fake.com/fake.php">
    Marek> <input type="hidden" name="item" value="<?= $item ?>">
    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.
Right. Either that, or remove the submit button, and have JavaScript submit the form on page load. -- By-Tor.com It's all about the Rush http://www.by-tor.com

« previous php.general (#166364) next »