Login   Register  
PHP Classes

File: testSecurityImage.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Joel Finkel  >  Security Image  >  testSecurityImage.php  >  Download  
File: testSecurityImage.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Security Image
Generate images with text to make a CAPTCHA test
Author: By
Last change:
Date: 10 years ago
Size: 657 bytes


Class file image Download

require "securityImageClass.php";

$si = new securityImage();
$si->inputParam "style='color:blue;'";

if (isset(
$_POST['callback'])) {
    if (
$si->isValid()) {
"Code is valid";
    } else {
"Code is invald";

<form name=test action="<?=$_SERVER['PHP_SELF'?>" method=post>

<input type=hidden name='callback' value='1'>

<td>Enter: <? echo $si->showFormInput() ?></td>
<td><? echo $si->showFormImage() ?></td>
<td colspan=2>
<input type=submit>