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 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? 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. 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 Link to comment https://forums.phpfreaks.com/topic/171821-cookie-format/#findComment-906022 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.