Vivid Lust Posted August 25, 2009 Share Posted August 25, 2009 Hey, need help with cookies I store this: [email protected] but it stores as: email%40nowhere.com thus i cant check it etc. Help? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/171821-cookie-format/ Share on other sites More sharing options...
YourNameHere Posted August 25, 2009 Share Posted August 25, 2009 Are you saving it from the URL via get? Quote Link to comment https://forums.phpfreaks.com/topic/171821-cookie-format/#findComment-906016 Share on other sites More sharing options...
Vivid Lust Posted August 25, 2009 Author Share Posted August 25, 2009 <?php setcookie("xxx[email]", "[email protected]", $time + 3600); // Sets the cookie $email = $_COOKIE['xxx']['email']; echo $email; ?> Output email%40nowhere.com How can I get it to ouput with the @ and not the%40? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/171821-cookie-format/#findComment-906018 Share on other sites More sharing options...
wildteen88 Posted August 25, 2009 Share Posted August 25, 2009 Use urldecode Quote Link to comment https://forums.phpfreaks.com/topic/171821-cookie-format/#findComment-906022 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.