Welcome Guest, Not a member yet? Register   Sign In
Passing an Email address via the URI
#1

[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.
#2

[eluser]pistolPete[/eluser]
How about base64 encoding?
http://ellislab.com/forums/viewthread/106225/
#3

[eluser]TheFuzzy0ne[/eluser]
Top job! Thanks, Pete!
#4

[eluser]TheFuzzy0ne[/eluser]
Nuts! It's not working. base64_encode seems to add a "=" sign when I encode my Email address. Sad
#5

[eluser]TheFuzzy0ne[/eluser]
Sorted. Just needed to use urlencode(). Thanks again, Pete!
#6

[eluser]TheFuzzy0ne[/eluser]
Ow! Sad

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/




Theme © iAndrew 2016 - Forum software by © MyBB