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?

3 of 13 people (23%) answered Yes
Recently 2 of 10 people (20%) answered Yes

Entry

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

Oct 8th, 2006 14:27
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.