Following is my JS code:
window.location.href = 'products.php?price_range=-INFto2000,2001to5000';
My question is how do I encode the URL in javascript & decode it in PHP, such that my browser's navigation bar will show
"products.…
I have a html text. I had encoded it in php using urlencode function.
I want to decode that text in the javascript.
when i use unescape function in javascript it replaces all the special characters back but sapce is …
I have a javascript which sends some specific information to a PHP api . Before to send it performs encodeURI . How can I "decode" it in PHP ? I understand that urldecode/urlencode is different that javascript encode/decodeURI so what can …