General Community > Scripting Help
PHP header question...
(1/1)
Aquilo:
I've tryied to find a way to get PHP to use the POST protocol till I gave up but
now I'm reading up on Flash and it sparked the question again :-\
any one know how to tell php to use the POST protocol with header(Location)?
I think there is a way with JavaScript and now as I'm reading up on
Flash it can specify which protocol to use is there a way to GET PHP to use POST?? :D
getURL ("http://www.url.com", "_blank", "POST");
Thanks Aquilo
Iridium:
The header("Location: ..."); automatically causes the header type to become 302 Found, which is an instruction to the browser to redirect the user to another page. There's no way to cause the user's browser to be redirected to another page, and have new data sent using a POST request.
Parham:
--- Quote from: Iridium on September 05, 2003, 01:38:07 PM ---The header("Location: ..."); automatically causes the header type to become 302 Found, which is an instruction to the browser to redirect the user to another page. If the user requested the page containing the redirect with a POST request, then the data sent will be resent to the redirected page (also using POST). There's no way to cause the user's browser to be redirected to another page, and have new/different data sent using a POST request.
--- End quote ---
unless you use the GET method...
Navigation
[0] Message Index
Go to full version