Consequence reference (with source code) http://mail.htjs.net/yanzhengma/test.php? Session_start ();? FORMMETHOD = POSTACTION = "" inputtype = textname = numbermaxlength = 4 imgsrc = "YanZhengMa. p
Consequence reference (with source code) http://mail.htjs.net/yanzhengma/test.php
// Check the verification code
If (isset (['sub']):
If (['Number']! = [Login_check_number] | empty (['Number']) {
Echo 'check code is not accurate! ';
} Else {
Echo 'verification code passed! ';
}
Endif;
Show_source ('test. php ');
// Source code on the above page
// The source code of the natural verification code is as follows:
Show_source ('yanzhengma. php ');
?>
Session_start ();
Session_register ('login _ check_number ');
// I saw the result of the verification code on chianren last night. I considered it and used the PHP GD library to complete similar functions.
// First generate the background, and then put the natural verification code
= 120; // define the length and width of the image first
= 40;
If (['act '] = 'init '){