faqts : Computers : Programming : Languages : PHP : Common Problems : Redirects

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

5 of 13 people (38%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

How to forward GET and POST parameters to a redirect URL?

Oct 8th, 2006 14:33
Matthew Wilkinson, Mr. Friendly,


You can currently only forward GET parameters to a redirect URL, in the
form:
header('Location: page.php?var1=hello&var2=my&var3=name');
POST parameters cannot be forwarded at this time unless you place them
in the query string to be used as part of the GET parameters in the
redirected page.