SetToLoki Posted January 12, 2010 Share Posted January 12, 2010 I just created a form that allows people to insert their email, but when the data is passed to the next page my @ sign is converted to %40 is there a php function to change this back to an @ sign? I tried htmlentities but it doesn't look for %40, any help appriciated. Cheers, Tom Quote Link to comment https://forums.phpfreaks.com/topic/188179-sign-problems/ Share on other sites More sharing options...
Catfish Posted January 12, 2010 Share Posted January 12, 2010 [edit] Sorry, not html entities. It is url encoding: http://au.php.net/manual/en/function.urldecode.php use urldecode() Quote Link to comment https://forums.phpfreaks.com/topic/188179-sign-problems/#findComment-993466 Share on other sites More sharing options...
SetToLoki Posted January 12, 2010 Author Share Posted January 12, 2010 [edit] Sorry, not html entities. It is url encoding: http://au.php.net/manual/en/function.urldecode.php use urldecode() Thanks I knew it was there somewhere just couldn't think of it Quote Link to comment https://forums.phpfreaks.com/topic/188179-sign-problems/#findComment-993480 Share on other sites More sharing options...
salathe Posted January 12, 2010 Share Posted January 12, 2010 How exactly are you getting this value? If you're using a form and the traditional $_GET/POST variables, there should be no need to urldecode the values as they are already urldecoded automatically. Quote Link to comment https://forums.phpfreaks.com/topic/188179-sign-problems/#findComment-993513 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.