Login   Register  
PHP Classes
elePHPant
Icontem

File: example_form.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 1 year 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>