Home » Demos » Example page for script: Hide mailto processor

Example page for script: Hide mailto processor

Use this form to the Hide mailto: function. You need to enter valid entries for the fields "E-mail address" and "Link text", "Mail subject". The fields "Some message" are optional.

Privacy: The entered e-mail address is only used for this test and will not be stored on a server / database.

I use in this example some regular expression to check for real e-mail addresses:

$pattern = '[a-z0-9_-]+(\.[a-z0-9_-]+)*\';
$pattern .= '@([0-9a-z][0-9a-z-]*[0-9a-z]\.)+([a-z]{2,6})';
if (preg_match(\"/\".\$pattern.\"/i\")) // code...';
			

Related PHP functions:

preg_match | preg_split | ord

Click here for the PHP script: Hide mailto tag