$_GET Help
Posted: Wed Dec 07, 2011 3:16 pm
How do I grab a get variable where the value of the variable may have an "&" sign in it?
For example, for this URL
For example, for this URL
Code: Select all
//http://example.com/?site=http://www.youtube.com/watch?v=S8zhmiS-1kw&ThisGets=CutOff
echo $_GET["site"];
//returns "http://www.youtube.com/watch?v=S8zhmiS-1kw"
//This, "&ThisGets=CutOff" because of the "&"
//How do I make $_GET["site"]== http://www.youtube.com/watch?v=S8zhmiS-1kw&ThisGets=CutOff