php - $_GET removes URL Encoded Characters, how to get the true _GET value? -
this question has answer here:
- get url query string 10 answers
1.php?test=%28004%2f58%29gunmetal%2fcrystal+green+polar.+lenses
if i'll try input
echo $_get['test']
i'm getting
"00458gunmetalcrystal green polar. lenses"
what need is
"%28004%2f58%29gunmetal%2fcrystal+green+polar.+lenses" or "(004/58)gunmetal/crystal green polar. lenses"
the php _get translates encoded chars % , + real value, know how real value? %28004%2f58%29gunmetal%2fcrystal+green+polar.+lenses
the "duplicate question" mark not correct. duplicate link not same @ all
thanks in advance
you can use $_server['query_string']
query string. contain variables, not 'test'.
Comments
Post a Comment