PHP Classes

File: example_form.php

Recommend this page to a friend!
  Classes of ~~   RainCaptcha   example_form.php   Download  
File: example_form.php
Role: Example script
Content type: text/plain
Description: Example
Class: RainCaptcha
Validate CAPTCHA images with RainCaptcha
Author: By
Last change:
Date: 11 years ago
Size: 713 bytes
 

Contents

Class file image Download
<?php
   
require_once('RainCaptcha.class.php');
   
$captcha = new RainCaptcha();
?>
<html>
    <body>
        <form action="example_handler.php" method="post">
            <table>
                <tr>
                    <th>Captcha</th>
                    <td>
                        <img src="<?php echo $captcha->getImage(); ?>" />
                        <br />
                        <input name="captcha" type="text" maxlength="5" />
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td><input type="submit" value="Submit" /></td>
                </tr>
            </table>
        </form>
    </body>
</html>