<?PHP
session_start();
if ($_POST) {
if (strtolower($_POST['key']) == $_SESSION['captcha_key']) {
echo 'TRUE';
}else{
echo 'FALSE';
}
echo '<hr><a href="test.php">< BACK</a>';
}else{
?>
<html>
<head>
<title>KG Captcha v1.0 Test Page</title>
</head>
<body>
<img src="captcha_image.php">
<hr>
<form method="post" action="test.php">
<input type="text" name="key">
<input type="submit" name="control" value="CONTROL">
</form>
</body>
</html>
<?
}
?>
|