图形验证码
时间:2006-09-19 来源:tianwu
test.html
----------------------------------------------------
验 证
----------------------------------------------------
post.php
----------------------------------------------------
$randval = mt_rand();
$seccode = substr($randval,-4);
$length = strlen($seccode);
$_SESSION['seccode'] = $seccode; //用SESSION保存验证码
$img=imagecreate(60,20);
$bgcolor = imagecolorallocate($img,255,255,255);
for ($i = 0; $i
?>
-------------------------------------------------------------
imgCheck.php
-------------------------------------------------------------
-------------------------------------------------------------
----------------------------------------------------
验 证
----------------------------------------------------
post.php
----------------------------------------------------
$randval = mt_rand();
$seccode = substr($randval,-4);
$length = strlen($seccode);
$_SESSION['seccode'] = $seccode; //用SESSION保存验证码
$img=imagecreate(60,20);
$bgcolor = imagecolorallocate($img,255,255,255);
for ($i = 0; $i
?>
-------------------------------------------------------------
imgCheck.php
-------------------------------------------------------------
-------------------------------------------------------------
相关阅读 更多 +