Welcome Guest, Not a member yet? Register   Sign In
decoding encodeURIComponent()
#1

I am using encodeURIComponent() in my javascript program before I send over an email address to the server.

the email is arriving at the CI program as this and I tried using entity_decode 
$email_key = entity_decode($json2->email,"@");

When the email arrives at the CI controller it is now "bandfrombossanova%40gmail.com.
But my attempt to decode it in CI is causing an issue. Is entity_decode the proper way to get back the email ([email protected])?  
proof that an old dog can learn new tricks
Reply


Messages In This Thread
decoding encodeURIComponent() - by richb201 - 10-06-2018, 08:48 PM
RE: decoding encodeURIComponent() - by jreklund - 10-07-2018, 02:20 AM
RE: decoding encodeURIComponent() - by php_rocs - 10-08-2018, 07:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB