0
Guys I have a routine that sends a query via AJAX to my PHP, so when I have for example the following query: ? value<=1000 ai it converts to ? value%253C=1000. The Request URL looks like this:
http://localhost/api/produtos?search=6&valor%253C=1000&per_page=10&page=1
There is something I can do to make AJAX not convert these characters?
Thank you
there’s no way, you’ll have to do the
html decode
in thephp
– Tobias Mesquita
Instead of using
GET
usePOST
, ai doesn’t even appear in the url– Guilherme Lautert
Using symbols would not be the best way to use querystring .... use practical names for your variables.
– Otto
Thanks @Tobymosque gave it right using urldecode. Thank you.
– Joao Nivaldo