[thelist] Using JavaScript for non-clickable email addresses

Mike evolt at muinar.com
Thu Jan 27 13:39:23 CST 2005


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   ;)



_____  mike s. krischker  http://webdesign-schweiz.ch/
        webpro mailing list  http://webdesign-list.com/
        flashpro mailing list  http://flash-list.com/



More information about the thelist mailing list