16-06-2006, 20:01
|
|
|
חבר מתאריך: 16.06.06
הודעות: 2
|
|
שים לב
הקוד ב GD..
קוד PHP:
<?php header("content-type:image/png"); $im = imagecreate(100,30); $RandSec = strtoupper(substr(md5(rand(1,999999)),0,6)); $bg = imagecolorallocate($im,255,255,255); $textcolor = imagecolorallocate($im,0,0,0); imagestring($im, 5,0,0, $RandSec,$textcolor); imagepng($im); ?>
הבדיקה אם הקוד שווה למה שהוכנס אז
קוד PHP:
if($RandSec==x){ echo "register complete"; }
מקווה שעזרתי.
|