Using e-mail for login, I figured out that there are (probably) problems with the charset of the HTML-form…
At the very top of the document I use php for:
header('Content-type: text/html; charset=utf-8');
In the head-section I also have:
<meta charset="UTF-8">
and even in the form itself:
<form accept-charset="utf-8" ...>
However, when serializing the form the e-mail address is being return as follows:
email=my%40email.com
Does anybody have an idea why?
Yes, CoursesWeb is right with this. Use
urldecode($_POST['email']);and it will automatically decode the string with all%##in it.From php.net:
(php.net/manual/en/function.urldecode.php)