PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Peeyush Budhia  >  PHP Math Captcha  >  index.php  >  Download  
File: index.php
Role: Auxiliary script
Content type: text/plain
Description: Index File
Class: PHP Math Captcha
Generate CAPTCHA images with math operations
Author: By
Last change:
Date: 8 years ago
Size: 1,252 bytes


Class file image Download
<!doctype html>
<html lang="en">
    <meta charset="UTF-8">
    <title>Captcha Validation</title>

<div style="text-align: center; color: blueviolet; font-size: x-large; margin-bottom: 10px;">Captcha Validation</div>
if (isset($_GET['success'])) {
"<div style=\"text-align: center; color: forestgreen; margin-bottom: 10px;\">$_GET[success]</div>";
if (isset(
$_GET['error'])) {
"<div style=\"text-align: center; color: firebrick; margin-bottom: 10px;\">$_GET[error]</div>";
<table style="text-align: center;" align="center">
    <form action="validate.php" method="post">
                <img src="getCaptcha.php" alt="Are you human?" id="captcha"/>
                <a href="#" onclick=" document.getElementById('captcha').src='getCaptcha.php'; document.getElementById('code').focus();" id="change-image">Refresh</a>

            <td colspan="2"><input type="text" name="code" size="30" id="code"/></td>
            <td colspan="2"><input type="submit" value="Check"/></td>


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