1) $prob = .6; # Email Address $email = $_REQUEST['email']; ### Start HTML output echo << Don't ever put an unprotected email address on your webpage. Robots roam the web looking for email addresses so that their masters can spam us, but we can foul them up by using special HTML codes to disguise email addresses. It is true that spammers could build their robots to read the special HTML codes, but this would make their robots run slower, and might not be worthwhile.

END; if ($email){ #### The user provided an address so we will encode it. $hidden = dg_hide($email); $mailto_hidden = dg_hide('mailto:'.$email); $link = "{$hidden}"; #### Put the result string in a format so that you can actually copy it #### without having to view the source of the page $hidden2 = htmlspecialchars($hidden); $link2 = htmlspecialchars($link); #### Print the output $output = << HTML code: {$hidden2} Preview: {$hidden} Now you can insert this HTML code in to your webpage! END; } #### Default email address # if (!$email) $email = 'mailto:'; #### Print the form echo <<
Email Address:
Probability of using cipher:
{$output}

Download the source code of this script.

END; ## By David Grayson, 2004. http://www.graysonfamily.org/~david. ## ## Please do not remove this tag if you copy this script. ##