I want to do a print on a argument that is on the URL, like this(in this case it’s Google):
I want to get that and print it like this:
print("Go <a href='$url'>back</a> to the page you was before the login);
How can I do this?
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.
In practice, you’ll want to validate the URL to see
substr($url, 0, strlen($prefix)) === $prefix)is enough;$urlis the urldecoded query string)The reason for these checks is that otherwise attackers may trick your users into visiting URLs that, although prefixed with your domain, actually forward them to malicious websites or vulnerable registered protocols in the victim’s browser.