PHP Classes

File: test.php

Recommend this page to a friend!
  Classes of Muharrem ERIN   KG CAPTCHA Class   test.php   Download  
File: test.php
Role: Example script
Content type: text/plain
Description: test file
Class: KG CAPTCHA Class
Generate images for CAPTCHA validation
Author: By
Last change:
Date: 16 years ago
Size: 512 bytes
 

Contents

Class file image Download
<?PHP
session_start
();

if (
$_POST) {
    if (
strtolower($_POST['key']) == $_SESSION['captcha_key']) {
        echo
'TRUE';
    }else{
        echo
'FALSE';
    }
    echo
'<hr><a href="test.php">&lt; 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>
<?
}
?>