simple str_replace() stuff will get the address into a mickey at disney dot com format... but the link needs to be done with javascript, and you have to accept that it will not work for everyone.
the phpclasses.org site does this along with 1000's of others, so I'm sure you can find some code. in fact, phpclasses HAS a few classes to do this too!!! search around for one that you like. justin on 05/10/02 3:36 AM, Ashley M. Kirchner ([EMAIL PROTECTED]) wrote: > > What's the best (or easy, whichever) way to obfuscate e-mail addresses, > either in plain HTML, or through a PHP script to prevent harvesters from > collecting them? I don't mind if the address shows up as 'mickey at disney > dot > com (as opposed to [EMAIL PROTECTED]), however I want it to be a 'mailto:' > link > that visitors can just click on. However, for that to work, one needs to put > the real address in the HREF tag - I want to avoid this and obfuscate it > somehow, yet maintain the functionality. > > Suggestions? > > -- > W | I haven't lost my mind; it's backed up on tape somewhere. > +-------------------------------------------------------------------- > Ashley M. Kirchner <mailto:[EMAIL PROTECTED]> . 303.442.6410 x130 > IT Director / SysAdmin / WebSmith . 800.441.3873 x130 > Photo Craft Laboratories, Inc. . 3550 Arapahoe Ave. #6 > http://www.pcraft.com ..... . . . Boulder, CO 80303, U.S.A. > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php