php - How can I escape single quotes from get method in Javascript? -
i passing form values via method. here url parameters.
"name='test'&exp=&level=&gender=&city=&sports="
while getting values method in javascript, single quote getting %27
. how can escape it?
while alerting $_get("name")
, gives %27test%27
.
please help
you should use php's urldecode on value. docs found @ http://php.net/manual/en/function.urldecode.php
let me know if that's you're looking :)
Comments
Post a Comment