server-php-micro-captcha-index.php / php
<?php session_start(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html> <head> <title>MicroCaptcha</title> <link href="style/style.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="main"> <div class="caption">MICRO CAPTCHA DEMO</div> <div id="icon"> </div> <?php if (isset(secCode = isset(_POST['secCode']) : ""; if (_SESSION['securityCode']) { echo "<p>The result code was valid!<br/></p>"; echo "<p><a href=\"".</a><br/><br/></p>"; unset(_SESSION['securityCode']); <p>Sorry the security code is invalid! Please try it again!</p>"; result = false; } } if ((!isset(result)){ ?> <form action="<?php echo <table width="400"> <tr><td>Security code: <input class="text" name="secCode" type="text" size="10" /></td> <td><img src=<securityCode.php> alt="security code" border="1" /></td> </tr> <tr><td colspan="2" align="center"><br/><input class="text" type="submit" name="submitBtn" value="Send" /></td></tr> </table> </form> <?php } ?> <div id="source">Micro Captcha 1.0</div> </div> </body>
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.