I am trying to pass id=%ADD_CODE as url params but when I am trying to get in php it is replacing %a with �. I need to keep the url param values the way it is.
Example
http://localhost/detect.php?id=%ADD_CODE%SUBID1&cid=%COOKIEID
Result when I am trying to echo key and value
id �DD_CODE%SUBID1
cid %COOKIEID
Any ideas?
Use Urlencode
localhost.com/detect.php?id=urlencode($userinput)
Make sure you are using urlencode() on your parameters: