File: fwphp/glomodul/z_examples/book_video/03steinmetz_2008/ch10_Images/captcha.php

Recommend this page to a friend!
  Classes of Slavko Srakocic  >  B12 PHP FW  >  fwphp/glomodul/z_examples/book_video/03steinmetz_2008/ch10_Images/captcha.php  >  Download  
File: fwphp/glomodul/z_examples/book_video/03steinmetz_2008/ch10_Images/captcha.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: B12 PHP FW
Manage database records with a PDO CRUD interface
Author: By
Last change:
Date: 2 months ago
Size: 590 bytes
 

Contents

Class file image Download
<?php

session_start
();

/* look for a submitted password */
if ($_REQUEST["tt_pass"]) {
    if (
$_REQUEST["tt_pass"] == $_SESSION["tt_pass"]) {
    echo
"passphrase correct.";
    } else {
    echo
"passphrase incorrect.";
    }
    exit(
0);
}

/* by default, send the form */

print '<form action="' . $_SERVER['PHP_SELF'] . '" method="post">';
?>

Type the following lowercase letters to proceed:<br />
(If you can't read this, reload the page)<br />
<img src="captcha_image.php"><br /><br />
Letters: <input name="tt_pass" type="text" size="10" maxlength="10">
<input type="submit">
</form>

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