WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDES  |  PHP CLASSES  |  CODE SEARCH  |  ARTICLES SEARCH  |  PHP FORUMS  |  PHP MANUAL  |  PHP FUNCTIONS LIST  |  WEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Submit Your Code
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
WeberDev's Monthly code contest PHP Code Contest
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Index
PHP Web Logs (BLogs)
Web Development Resources
Web Development Content
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
Submit Site
Forex Trading Online forex trading platform

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : Email Address Protection (Avoide SPAM)
Categories : Java Script, Email, Encryption Click here to Update Your Picture
Bobin R
Date : Mar 11th 2007
Grade : 3 of 5 (graded 2 times)
Viewed : 1940
File : No file for this code example.
Images : No Images for this code example.
Search : More code by Bobin R
Action : Grade This Code Example
Tools : My Examples List

  Submit your own code examples 
 

Providing your email address as is in an HTML page can invite many unwanted spam messages. This is because there are many email extractor programs that can extract your email address from a webpage. This simple script can be used to prevent that.

<html>
<head>
<title>Email Address Protector</title>
<script type="text/javascript">
<!--
function showEmail(user, domain, tld, title){
   var emailId = user + "\u0040" + domain + "." + tld;
   var url = "mailto:" + emailId;

   if(!title){
       title = emailId;
   }
   document.write("<a href='" + url + "'>" + title + "</a>");
}
//-->
</script>
</head>

<body>

You can use the function as show below<br/>
my email id is <script type="text/javascript">showEmail('contact', 'weberdev', 'com')</script><br/>
or Click <script type="text/javascript">showEmail('contact', 'weberdev', 'com', 'here')</script> to mail me
</body>
</html>



Protect your mailto: email addresses from bots
Categories : PHP, Email, Java Script
Javascript URL and Email Validation
Categories : Java Script, Data Validation, Form Processing, Email, URLs
A PHP function to encrypt and decrypt a number or string or a combination of the two.
Categories : PHP, Encryption, Security
Zephyr: AJAX Based Framework for PHP5 Developers
Categories : PHP, AJAX, Frameworks, Java Script, Web Applications
Create HTML forms dynamicly using Javascript & PHP
Categories : PHP, PHP Classes, Java Script
javascript doesn't accept a fieldname with []
Categories : Java Script
Array values from javascript to php
Categories : PHP, Java Script, Arrays
email new items in db
Categories : PHP, Email, Databases, MySQL, Beginner Guides
Linked comboboxes with php-mysql & javascript
Categories : PHP, Java Script, Databases, MySQL
The toll booth
Categories : PHP, Java Script, Filesystem
MD5 secured login
Categories : PHP, Java Script, Authentication, Security
Class for sending mail with MIME attachments in multipart format using external sendmail, mimencode and zip
Categories : Email, Network, PHP, PHP Classes
Flash Detection Script with loads of features
Categories : Java Script, Flash
Bypassing Plugin / FLASH Activation
Categories : Java Script, Web Browsers, Security, Flash
write an event to the eventlog via JScript
Categories : Java Script, Windows 2000