Abhinav Software
Sale!

Question Answer Captcha Class for PHP

$1.00 Free!

This is how you can use this class

<?php
session_start(); //this is required!
require_once 'qacaptcha/qacaptcha.class.php';

$q = new QACaptcha("somekey");

if($_SERVER["REQUEST_METHOD"]=="POST"){
    if($q->validate()){
        echo "FORM SUBMITTED SUCCESSFULLY";
        exit();
    } else {        
        $q->clearKey();
        $q = new QACaptcha("somekey");
        echo "Wrong Answer to question! Please try again";         
    }
}

?>

<form method="post" action="index.php">
    <p>
        <label for="name">Name:</label>
        <input type="text" name="name" value="" />
    </p>
    <p>
        <?php echo $q->outputKey(); ?>
    </p>
    <p>
        <input type="submit" name="btnSubmit" value="Submit" />
    </p>
</form>
qa_class_banner
Category:

Reviews

There are no reviews yet.

Be the first to review “Question Answer Captcha Class for PHP”