Login | ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/php_antispam/trunk/examples/antispam4-example.php
Revision: 2
Committed: Thu May 2 10:15:53 2019 UTC (9 months, 4 weeks ago) by daniel-marschall
File size: 675 byte(s)
Log Message:
Initial release to SVN

File Contents

# Content
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
3
4 <html>
5
6 <head>
7 <title>ViaThinkSoft AntiSpam Test</title>
8 </head>
9
10 <body>
11
12 <?php
13
14 echo '<form action="'.$PHP_SELF.'">
15 <input name="email" value="'.$_GET['email'].'">
16 <input name="linktext" value="'.$_GET['linktext'].'">
17 <input type="checkbox" name="crypt_linktext" checked>
18 <input type="submit">
19 </form>';
20
21 include 'antispam.inc.php';
22
23 $x = secure_email($_GET['email'], $_GET['linktext'], isset($_GET['crypt_linktext']));
24 echo '<textarea cols="120" rows="20">'.htmlentities($x).'</textarea>';
25 echo '<hr>';
26 echo $x;
27
28 ?>
29
30 </body>
31
32 </html>