[英]Header Redirect and Keep URL Parameters
I would like to do a header('Location: pageB.php')
redirect from the current url which is: 我想从当前的url做一个header('Location: pageB.php')
重定向:
http://example.com/pageA.php?one=124214412&?two=ofisajfsa8938
How do I keep the parameters after http://example.com/pageB.php
after the header redirect? 如何在标题重定向后http://example.com/pageB.php
之后保留参数?
I always end up with http://example.com/pageB.php
instead of http://example.com/pageB.php?one=124214412&?two=ofisajfsa8938
我总是最终使用http://example.com/pageB.php
而不是http://example.com/pageB.php?one=124214412&?two=ofisajfsa8938
Any way to do this? 有什么办法吗?
header("Location: pageB.php?". $_SERVER['QUERY_STRING']);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.