Passing an Email address via the URI |
[eluser]TheFuzzy0ne[/eluser]
I'm sure this question has been asked before, but I'll be darned if I can find the answer. I don't want to change the allowed URI characters on account of this. I can also, just convert the @ symbol to some kind of code and decode it with the receiving method, but I'd like to know how everyone else manages. Thanks.
[eluser]pistolPete[/eluser]
How about base64 encoding? http://ellislab.com/forums/viewthread/106225/
[eluser]TheFuzzy0ne[/eluser]
Nuts! It's not working. base64_encode seems to add a "=" sign when I encode my Email address.
[eluser]TheFuzzy0ne[/eluser]
Sorted. Just needed to use urlencode(). Thanks again, Pete!
[eluser]TheFuzzy0ne[/eluser]
Ow! The "%" character is not allowed in URIs. Can anyone suggest a good way to encode/decode URIs in CI? EDIT: I've created two functions to encode/decode base64 encoded strings so that they can be used in the URI. http://ellislab.com/forums/viewthread/107741/ |
Welcome Guest, Not a member yet? Register Sign In |