-1

1.php?test=%28004%2F58%29Gunmetal%2FCrystal+Green+Polar.+lenses

if i'll try to input

echo $_GET['test']

I'm getting

"00458GunmetalCrystal Green Polar. lenses"

What I need to get is

"%28004%2F58%29Gunmetal%2FCrystal+Green+Polar.+lenses" or "(004/58)Gunmetal/Crystal Green Polar. lenses"

the PHP _GET translates all encoded chars with % and + to real value, does anybody know how to get a real value? which is %28004%2F58%29Gunmetal%2FCrystal+Green+Polar.+lenses

the "duplicate question" mark is not correct. The duplicate link is not the same at all

Thanks in advance

bell2041
  • 71
  • 1
  • 1
  • 8

1 Answers1

1

You can use $_SERVER['QUERY_STRING'] to get the query string. But it will contain all GET variables, not just 'test'.

nl-x
  • 11,762
  • 7
  • 33
  • 61
  • not good, because I got bunch of _GET, but you are right, $_SERVER['QUERY_STRING'] does have a true value – bell2041 Aug 18 '14 at 15:31