PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Julio Romano   Image Verification   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example of usage
Class: Image Verification
Generate and verify CAPTCHA validation images
Author: By
Last change:
Date: 17 years ago
Size: 1,672 bytes
 

Contents

Class file image Download
<?

include("ImgVerification.php");

$vImg = new ImageVerification;

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#006699">
  <form name="form1" method="post" action="verify.php">
    <tr bordercolor="#FFFFFF" bgcolor="#3399CC">
      <td colspan="2" align="center" bordercolor="#FFFFFF" bgcolor="#FFFFFF"><font color="#000000" size="4" face="Verdana, Arial, Helvetica, sans-serif"><strong>Verification Image
      </strong></font> </td>
    </tr>
    <tr bordercolor="#FFFFFF">
      <td colspan="2"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&nbsp;</font></td>
    </tr>
    <tr bordercolor="#FFFFFF">
      <td colspan="2"><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><img src="img.php"></font></div></td>
    </tr>
    <tr bordercolor="#FFFFFF">
      <td width="25%" nowrap><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Please enter the code of image:&nbsp;</font></td>
      <td width="75%"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
        <?
    $vImg
->mostraInput(1);
   
?>
</font></td>
    </tr>
    <tr bordercolor="#FFFFFF">
      <td colspan="2" align="center" nowrap>
        <input type="submit" name="Submit" value="Send">
      </td>
    </tr>
    <tr bordercolor="#FFFFFF">
      <td colspan="2" nowrap>&nbsp;</td>
    </tr>
  </form>
</table>

<div align="right"><br>
</div>
</body>
</html>