Redirection script not working properly - and I know why
Posted: Wed Dec 19, 2007 9:57 pm
I am trying to create a simple redirect script. It works in may cases, except for if the URL being redirected to contains a ?. That fails because the script looks for a URL after index.php?u=SOMEURL but stops when it reaches another question mark.
IE: redirects just fine, however this fails:
Is there a way to only read what is after the first ? (ie the $_GET['u'] value) and capture the entire thing, and not stop at the next ? or & symbol? I feel noobish asking all these questions but I busted out the php books and found nada.
IE:
Code: Select all
http://someurl.com/?u=http://www.gooogle.comCode: Select all
http://someurl.com/?u=http://www.takemehere.com/index.php?page=home&cash=MONEY!