Posts

Showing posts with the label captcha

Simple and powerful captcha in PHP

example_form.php <?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> example_handler.php <html>     <body>         <?php   ...