|
session_start();
$error="";
if (isset($_POST["pass"]))
{
include_once $_SERVER["DOCUMENT_ROOT"] . "/securimage/securimage.php";
$securimage = new Securimage();
if ($securimage->check($_POST["captcha_code"]) == false) {
// the code was incorrect
// you should handle the error so that the form processor doesn't continue
$error = "The security code entered was incorrect.
";
}
else
{
$error = "";
}
}
?>
|