margin-left: 30px; margin-right: 30px; border-style: dashed; border-width: 2px; border-color: #FFD940; } --> </style> </head> <body> <h3>This is a demo of hn_captcha.class.php with a Standalone-Form:</h3> <?php $captcha = new hn_captcha($CAPTCHA_INIT, TRUE); //$captcha =& new hn_captcha($CAPTCHA_INIT); switch ($captcha->validate_submit()) { // was submitted and has valid keys case 1: // PUT IN ALL YOUR STUFF HERE // echo "<p><br>Congratulation. You will get the resource now."; echo "<br><br><a href=\"" . $_SERVER['PHP_SELF'] . "?download=yes&id=1234\">New DEMO</a></p>"; break; // was submitted with no matching keys, but has not reached the maximum try's // was submitted with no matching keys, but has not reached the maximum try's case 2: echo $captcha->display_form(); break; // was submitted, has bad keys and also reached the maximum try's // was submitted, has bad keys and also reached the maximum try's case 3: //if(!headers_sent() && isset($captcha->badguys_url)) header('location: '.$captcha->badguys_url);