NYCPHP Meetup

NYPHP.org

[nycphp-talk] Masking Emails and Avoiding Spam - OOPS

Ed McCarroll Ed at ComSimplicity.com
Thu May 1 17:59:52 EDT 2003


> ... the methods below both produce ...

I think I trimmed too much.  I was referring to the following:

> 1) JavaScript Replacement
> 
> For example, if your email address is webmaster at nyphp.edu, you would insert
> the following code, replacing "user" with the information to the left of
> the @ sign and replacing "site" with your host name.
> 
> <SCRIPT LANGUAGE="JavaScript">
> <!-- Begin
> user = "webmaster";
> site = "nyphp.edu";
> 
> document.write('<a href=\\"mailto:' + user + '@' + site + '\\">');
> document.write(user + '@' + site + '</a>');
> // End -->
> </SCRIPT>
> 
> 
> 2) ASCII Code Replacement
> You can replace the "@" sign in your mailto links with the ASCII code
> equivalent "@".
> 
> For example, if your email address is webmaster at nyphp.edu, you would do the
> following:
> 
> <a href="mailto:webmaster at nyphp.edu">webmaster at nyphp.edu</a>
> 
> This will produce a link that says webmaster at nyphp.edu.

Sorry 'bout that.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Ed McCarroll                          MailTo:Ed at ComSimplicity.com
ComSimplicity                                      (310) 838-4330
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -




More information about the talk mailing list