PHP Classes

File: SpamChecker_test_1.php

Recommend this page to a friend!
  Classes of Roger Baklund   PHP Spam Check   SpamChecker_test_1.php   Download  
File: SpamChecker_test_1.php
Role: Example script
Content type: text/plain
Description: Demo 1
Class: PHP Spam Check
Check if a text can be spam testing invalid words
Author: By
Last change:
Date: 10 years ago
Size: 992 bytes
 

Contents

Class file image Download
<?php

error_reporting
(E_ALL);
ini_set('display_errors',1);
date_default_timezone_set('Europe/Paris');

include(
'demo_AutoSpamChecker.php');

?><html><head><title>SpamChecker test</title>
</head><body>
<h1>SpamChecker test</h1>
<p>Test form, enter something:</p>
<form method="post" style="float:left;margin:1em;">
<div style="width:15em;border:solid 1px black;padding:1em;background-color:silver;">
<fieldset><textarea rows="8" name="text"></textarea></fieldset>
<fieldset>A:<input type="text" name="a" value="" /></fieldset>
<fieldset>B:<input type="text" name="b" value="" /></fieldset>
<fieldset>C:<input type="text" name="c" value="" /></fieldset>
<fieldset>sessionkey:<input type="text" name="sessionkey" value="HlglRskGghwf" /></fieldset>
<input type="submit" value="Go" />
</div></form>
<?php
if(count($_REQUEST))
  echo
'<h2>Input accepted, spam check report:</h2>'.
   
$SpamChk->GetTextStatus().
   
$SpamChk->VowCon->HTMLReport();
?>
</body>
</html>