|
Hi. You have an error in your code. If you put this after use strict;
BEGIN { use CGI::Carp qw(fatalsToBrowser); }
You can see that your code is die()ing at the line you use check_code(). In your code, $captcha is only defined if $flag ne "submitted". If it has the value "submitted", $captcha will not be defined. Put the $captcha object creation outside of any param check, or create a new one just before calling check_code().
See the SYNOPSIS section of GD::SecurityImage::AC for the usage of the module. |