Multiple processes

See all posts See thread Reply

Re: Multiple processes new!
by Leon, 17 years, 9 months ago
How do you make it possible to generate another image when clicked on captcha? The original class does not do that. It is probably ajax, can you give some code?Reply
Re: Multiple processes new!
by colin, 17 years, 9 months ago
Look at the code!

Basically, the source of the image is a PHP script which generates and output the CAPTCHA image (and also set the CAPTCHA phrase into the session). I add a random value to the URL to make sure that the CAPTCHA is generated each time and is not taken from the cache.

See:
CAPTCHA image
Replace ### by javascript in the code above.

The file captcha.php is very simple:
session_start();
$captcha = new CaptchaNumbersV2(5);
$captcha->display();
$_SESSION['captcha'] = $captcha->getString();
exit();
Reply