PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of omid zarifi   Best CAPTCHA   index.php   Download  
File: index.php
Role: Auxiliary script
Content type: text/plain
Description: index
Class: Best CAPTCHA
Generate an image for CAPTCHA validation
Author: By
Last change:
Date: 12 years ago
Size: 517 bytes
 

Contents

Class file image Download
<?php
/*
Programing By Omid Zarifi
Website : www.progvig.com
email : zarifi.omid@gmail.com
this class can create a good captcha ( anti robot & worm )

*/
session_start();
$mycd=$_SESSION['security_code'];
if (isset(
$_POST['code']))
{
if (
$mycd==$_POST['code'])
{
echo
'good';
}
else
{
echo(
"Error");
}
}
?>
<html>
<body>
<?php echo'<img src="img.php" alt="captcha" />';?>
<form method="post">
<input type="text" name="code" />
<input type="submit" value="Send"/>
</form>
</body>
</html>