Mega Code Archive
Protect your mailto email addresses from bots - pure PHP
After reading an example of how to secure your email on your website from robots, which was incorrect, as it was pure PHP, I decided to give you my function for doing it.
The code below takes 1 or 2 parameters, the email and the text for the link. If you omit the text, the email address is used.
' . "\n";
$code.='' . "\n";
$code.='' . "\n";
return $code;
}
?>