PHP Classes

File: animatedcaptcha_example.php

Recommend this page to a friend!
  Classes of dicky kurniawan  >  Animated Simple CAPTCHA  >  animatedcaptcha_example.php  >  Download  
File: animatedcaptcha_example.php
Role: Example script
Content type: text/plain
Description: Example - Main
Class: Animated Simple CAPTCHA
Generate a CAPTCHA validation animated image
Author: By
Last change:
Date: 14 years ago
Size: 870 bytes


Class file image Download

if (isset(
$_POST['user_guess'])) {

$img=new animated_captcha();
$img->magic_words('i am cool');

<head><title>Animated Captcha Test</title></head>
<img alt="animated captcha" src="./animatedcaptcha_generate.php?i=<?php echo(md5(microtime()));?>" />
<form method="post">
Image Text = <input type="text" name="user_guess" autocomplete="off" /><br />
<input type="submit" value="Check" />
if ($user_guess=='') {
'<p>Fill the input !</p>');
} else if (
$valid) {
'<p>Correct. You are 100% human being !</p>');
} else {
'<p>Invalid text. Are you a human ? Do you eat electricity ?</p>');

For more information send a message to info at phpclasses dot org.