what’s the best practice for manipulating a request and redirect it?
example –
user goes to www.mysite.com?s=1&b=2
I want to redirect to
www.mysite.com?s=1&b=2&c=3
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just add the variable to the ones already passed via
$_GETand then perform the redirect:You could shorten the expression by using
$_GET + array('c' => 3)but you get the point 🙂