Re: Re: Header() - POST
| From: | Stut | Date: | Sun, 21 Sep 2008 18:57:20 +0000 |
| Subject: | Re: Re: Header() - POST | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-280655@lists.php.net to get a copy of this message | ||
On 20 Sep 2008, at 01:23, Michelle Konzack wrote:
Am 2008-09-05 17:11:58, schrieb Stut:Bloody nora Michelle. If you're going to post answers to week-old questions please have the decency to read the question properly. The OP wanted to automatically POST some data. That's not gonna happen with a meta tag no matter how much you want it to do it. -Stut -- http://stut.net/You're trying to post to the browser which won't know how to handle it. The header() function is modifying the response headers that are being sent back to the browser, they do not create a new request. If you want to do a new request I suggest looking at curl. If you actually want the browser to make the new request the only way is to return a hidden form and auto-submit it with JS. However, as someone else pointed out if that second request is coming back to the same server there probably isn't any need for a second request at all.Why using JS? echo "<meta http-equiv=\"refresh\" content=\"0;" . $FULL_URL "\">"; would do the trick...