Re: Header() - POST
| From: | Michelle Konzack | Date: | Sat, 20 Sep 2008 00:23:21 +0000 |
| Subject: | Re: Header() - POST | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-280592@lists.php.net to get a copy of this message | ||
Hi Stut,
Am 2008-09-05 17:11:58, schrieb Stut:
> 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...
Thanks, Greetings and nice Day/Evening
Michelle Konzack
Systemadministrator
24V Electronic Engineer
Tamay Dogan Network
Debian GNU/Linux Consultant
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
+49/177/9351947 50, rue de Soultz MSN LinuxMichi
+33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)