How do I encode an e-mail in a link and decode it via PHP after clicked?

Okay this snippet looks like what I need in PHP after the user clicks the link. So how do I ENcode it via PHP and attach it to the link prior to sending?

$email = filter_var(base64_decode($_GET['email']), FILTER_SANITIZE_EMAIL);

Thanks!

use base64_encode before.

Think about order of operations and what the return values are.

Okay thanks! I’ll do some research. :smiley:

Sponsor our Newsletter | Privacy Policy | Terms of Service