Login   Register  
PHP Classes
elePHPant
Icontem

File: validate.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Peeyush Budhia  >  PHP Math Captcha  >  validate.php  >  Download  
File: validate.php
Role: Example script
Content type: text/plain
Description: File is used to validate captcha image.
Class: PHP Math Captcha
Generate CAPTCHA images with math operations
Author: By
Last change:
Date: 9 months ago
Size: 227 bytes
 

Contents

Class file image Download
<?php
require 'class.MathsCaptcha.php';
$C = new MathsCaptcha();
if(
$C->isValid($_POST['code'])){
    
header('Location: index.php?success=Code Validated');
} else {
    
header('Location: index.php?error=Invalid Code');
}