File: example.php

Recommend this page to a friend!
  Classes of Abdulrahman Muhammad  >  Ocheck class  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example1
Class: Ocheck class
Display and verify validation images
Author: By
Last change:
Date: 12 years ago
Size: 1,205 bytes
 

Contents

Download
<?
#
# By : Saanina [@gmail.com]
# 08:32 pm 28/08/28

//thes parameter like when user register it as first time ..
$past_v = md5("1a|2b|3c"); // <<--- this value must stored as name of user etc ..


//inlude class
require ('ocheck_class.php');

//start class
$ch = new ocheck;

//metod for the form
//$ch->method = 'post';
//path of imgs
//$ch->PathImg = 'imgs';

if ( !isset($_GET['ok']) )
{
echo
"
<div style=\"background-color:silver\">
hi ... u must enter valid code to login ..this is same code u choosed when u registered..
<br /> example vlaue is [ <img src=\"imgs/1a.gif\" /><img src=\"imgs/2b.gif\" /><img src=\"imgs/3c.gif\" />]
<br />
</div>
"
;
echo
"
<form action=\"?ok=1\" method=\"post\">
"
;
// show box
$ch->show();

echo
"
<br />
<input type=\"submit\" value=\"login\" />
</form>
</body></html>
"
;


}
#get[ok ... = !

//now

if (isset($_GET['ok']))
{

   
// now .. we see result .. true or false
   
if ( $ch->result($past_v) )
    { echo
"right ooIMG_Check .. you are the best ;) ..."; }
    else
    {
    { echo
"wrong ooIMG_Check ... be careful man ..."; }
    }
   
   
   
//to insert to sql for example
    //echo $ch->save();
}





?>


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