Hi guys,
I have a problem with sending spaces in a querystring being translated to underscores when reading with $GET.
If I use urlencode to encode the querystring I can see the spaces are replaced with a plus (+), so if my string is 'SOME STRING', it would be passed as 'SOME+STRING'.
If I then read the $GET variables, I get 'SOME_STRING', not 'SOME+STRING'.
Is there a way around this?
I could translate underscores back to spaces myself, but what would happen if the string actually did contain an underscore?
For example, if I passed 'SOME_STRING', when I read the $_GET variables I would translate the underscore to a space which would be wrong.
Can anyone help me with the correct way of passing and reading querystring variables that contain spaces?
Thanks!