[thelist] Using JavaScript for non-clickable email addresses

Christian Heilmann lists at onlinetools.org
Thu Jan 27 14:32:21 CST 2005

Mike wrote:

> At 11:57 27.01.2005 -0400, you wrote:
>>> I just pondered a bit about that and wondered what you thing of that 
>>> idea:
>>> Link to a contact.php page with an id
>>> <a href="contact.php?id=222">
>>> The PHP page then checks the referrer and IP and gets the email from a
>>> database or other mean of storage and sends back a mailto: header:
>>> <?PHP
>>> /*
>>>   insert referrer testing and DB voodoo here
>>> */
>>> header('Location:mailto:'.$email);
>>> ?>
>>> Wouldn't that be a quite safe solution?
>> This is an interesting idea, and sounds workable to me - but I'm 
>> guessing that since I've never heard of it before, maybe that means 
>> there's a good reason it won't work as intended so it's already been 
>> discarded as a workable solution. Does anyone know if this would work?
> Why not? I'm using this approach regularly. Here, for instance:
> http://elrem.ch/team.php
> (Please don't send test messages, it's a live site   ;)
Can  you send an example of the code then?

Also feel free to add it as a comment:


More information about the thelist mailing list