<?php
session_start();
$md5 = md5(microtime() * mktime());
$string = substr($md5,0,7);
$cap = imagecreatefrompng("captcha.png");
$green = imagecolorallocate($cap,000,102,068);
$blue = imagecolorallocate($cap,017,017,051);
imageline($cap,39,5,65,33,$green);
imageline($cap,81,7,5,31,$green);
imageline($cap,0,7,82,25,$green);
imagestring($cap,5,20,10,$string,$blue);
$_SESSION['key'] = md5($string);
header("Content-type: image/png");
imagepng($cap);
?>
And when done the captcha should look like the image below
pic.jpg (11.98K)
Number of downloads: 3
Attached File(s)
-
captcha.png (332bytes)
Number of downloads: 4
Help
















