|
Posted by Sean on 03/30/07 08:59
> $myEmail1 = "myem...";
> $myEmail2 = "@";
> $myEmail3 = "blah.com";
As someone suggested, the fact that this is constructed on the server,
offers us nothing.
Would not make more sense to carry this style in the HTML, as Javascript?
Something like:
<script>
function em(who, domain, ext)
{
location.href = "mailto:" + who + "@" + domain + "." + ext;
}
</script>
<a href="" onClick="em('dave','msn', 'com')">Email Dave</a>
<a href="" onClick="em('sarah','hotmail', 'co.uk')">Email Dave</a>
By far, I am not suggesting this as the be all and end all solution, but
like someone else suggested ... ensuring that the resulting HTML does not
display the full email@domain.com style address on the page, or in the HTML
code certainly does help limit the spam.
Okay, so any programmer with 20 seconds to spare would write something to
unravel this, but with the "billions" of email addresses readily available
on so many websites, is it worth their effort?
Anyway, that's my thoughts, for what they're worth.
[Back to original message]
|