Captcha that works with an existing Perl form script?

I’ve been exploring a number of captchas (see here: 21 Free CAPTCHA Sources) for several days now and I’m at a loss as to a possible solution. All the PHP captchas only work with PHP, the CGI captchas need a form action=“” directive yet it’s already taken. I’m using TFMail for my form processor. Anyway, here’s my situation:

I need a captcha that can be fully integrated (without issue) with an existing CGI/Perl script. It 1. must not interfere with the existing form action, 2. Must be able to be integrated at the end of the form without a new “Form Action” having to be applied. No JavaScript equation captchas.

So my existing code is like this:


<form action="http://www.domainname.com/cgi-bin/form_script.pl" method="post">
Name: <input type="text" name="name"><br />
EMail: <input type="text" name="email"><br />
Phone: <input type="text" name="phone"><br />
Comments: <input type="text" name="comment"><br />
<input type="image" src="http://www.domainname.com/images/submit-form.jpg" alt="Submit">
</form>

I want a CGI/Perl compatible non JavaScript captcha that can do THIS:


<form action="http://www.domainname.com/cgi-bin/form_script.pl" method="post">
Name: <input type="text" name="name"><br />
EMail: <input type="text" name="email"><br />
Phone: <input type="text" name="phone"><br />
Comments: <input type="text" name="comment"><br />
[COLOR="DarkRed"](insert captcha code here to function)<img src="newcaptchaimages.jpg"><script type="whatever language" src="insert captcha code here"></script>(end captcha code)[/COLOR]
<input type="image" src="http://www.domainname.com/images/submit-form.jpg" alt="Submit">
</form>

Is what I’m looking for possible??

It is a while since I looked at this area, but … have you had a look at reCaptcha from google.

If memory serves me right. It can work with or withour javascript.

Server side there is a reCaptcha.pm for ease of checking the response. This uses a LWP, or something similar, to access the reCaptcha site and ask “Is this response correct?”.