Forum Moderators: coopster
if i have a & and i can encode it to %26amp%3B in the url, but it doesn't decode back. so my problem is decoding the %26amp%3B back to &
to encode the url i'm using:
urlencode(htmlspecialchars("this & that"))
this results in "this+%26amp%3B+that" in the url, so i try to decode using:
urlencode(htmlspecialchars($_GET['title']))
but it's not working.
maybe i'm encoding badly? maybe it's just a problem with the decode. i do not want to do any replaces, i would like to encode and decode, so if i'm faced with any other characters in the future, i don't have to add support for them.
any ideas?