I would like to do a header('Location: pageB.php')
redirect from the current url which is:
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?
I always end up with http://example.com/pageB.php
instead of http://example.com/pageB.php?one=124214412&?two=ofisajfsa8938
Any way to do this?
header("Location: pageB.php?". $_SERVER['QUERY_STRING']);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.