Tags » Captcha Code

PHP Simple Captcha Example

The pursuing code will prepare a CAPTCHA image and keep the code in a session variable for later use:

” session_start();

$image = imagecreatefromjpeg(“captcha_bg.jpg”);

$text=substr(md5(rand(10,100)),0,1); 18 more words

Captcha Example