Im trying to decode the email, since its been encoded in the url, but the urldecode()
function wont decode it.
I'v also tried rawurldecode()
, then tried first encoding it myself and then decoding it, but its still encoded like %40 instead of an @ sign.
Here is the code:
$isValid = ! User::emailExists(urldecode($_GET['email']));
Im getting something like this:
http://localhost/account/validate-email?email=some_email%40gmail.com