Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hide email address 1

Status
Not open for further replies.

SM777

Technical User
Mar 7, 2001
208
0
0
GB
How do I hide email addresses in a page.

I dont want to use a form based email - just the simple mailto: tag. But I'm concerned about the sircam virus picking up email addresses from cached pages.

Can I use PHP to generate the correct email address for the user to click on but not let it be visible in a page?

I guess I need some kind of javascript pop up box but jsut wondering if it can be done in PHP.
 
do something like:
(in the HTML page)

<a href=&quot;mailto:
<script>
<!--
document.write('myaddress');
document.write('@');
document.write('mydomain');
document.write('.com');
//-->
</script>
&quot;>mail me</a>

--
basic idea is too write out pieces of the address with javascript at render time, I don't know of any magic that can read a email address out of the preceeding code (other than a human being!)

rgds,

Jochem
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top