I have a string with the following content
http://www.mysite.com/test.php?http://www.anotherwebsite.com
how can i save the second url in a php variable?
i mean, the url after the interrogation mark.
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.
If you had the following
then you could do this
OR this
OR this
OR many other approaches that will give you the same result.
I am concerned with using ? as a delimiter between URLs because the ? is a valid and important part of the full URI. For this reason my examples use
'?http'instead of just'?'but there are still potential pitfall situations even with'?http'