I am having a simple problem. I need to get the parameter value from url.
URL is like this:
http://www.example.com/index.php?someUrl=http://www.example.com/folder/index.htm#<id=18025>>newwnd=false
I need to get the value of someUrl
in php.
What i tried:
$_GET['someUrl'];
Output I am getting is http://www.example.com/folder/index.htm
Output need to get :
http://www.example.com/folder/index.htm#<id=18025>>newwnd=false
Note: I can't separate the URL after # into new parameter.
I hope i am able to clear the question.
EDIT: As per the valuable feedback, i have encoded the string before sending into as a URL parameter.
I did encoding by javascript function encodeURIComponent
Now URL become like below:
http://www.example.com/index.php?someUrl=http%3A%2F%2Fexample.com%folder%2Ftallyhelp.htm%23%253Cid%3D18025%253E%253Enewwnd%3Dfalse
After decoding in php by urldecode
function, i am getting the result http://www.example.com/folder/index.htm#>newwnd=false
'id' remove from the result.