...

View Full Version : adding captcha to an html form



bigginge
01-24-2012, 11:41 AM
A friend has asked me to add a 'captcha' to the booking form for his training site. I have done a lot of work in Flash but have only a basic knowledge of html, although I have done a form before. The top of the form has this code:


<FORM METHOD="POST"
ACTION="http://www.sierra.co.uk/cgi-bin/cgiwrap/sierra/submitform.cgi"
ONSUBMIT="return fValidateBooking(this)" NAME="Course_Booking">
<INPUT TYPE="hidden" NAME="recipient"
VALUE="training@sierra.co.uk"><INPUT TYPE="hidden" NAME="redirect"
VALUE="http://www.sierra.co.uk/booking_submission.htm "><INPUT TYPE="hidden"
NAME="sort" VALUE="alphabetic">
<DIV ALIGN="CENTER">

And after the various fields comes:


<TR>
<TD COLSPAN="4" ALIGN="CENTER" bgcolor="#CCCCCC">This has completed the booking
request. We will confirm that your booking has been accepted.<BR>Press
<INPUT TYPE="SUBMIT" VALUE="Submit Booking"
NAME="A0_Booking_For_ASRPP_ISERIES_RPG400_PROGRAMMING"> to send your
reservation to Sierra or<BR>Press
<INPUT TYPE="reset" VALUE="Cancel" NAME="Reset_Booking"> to clear the booking
form. Thankyou.</TD>

There is also a booking.php file which I imagine gathers the info and sends it, the submit part of this is:

<p
align="center"><font
size="2" face="Arial">
<input
type="submit"
name="Submit2"
value="Submit">
</font></p>

I have looked into this and found various captcha scripts but can't figure out how to add them to the form. I would really appreciate any help you can give me.

prasanthmj
01-25-2012, 03:47 AM
You can try recaptcha (http://www.google.com/recaptcha)
you have to modify the PHP script as well. See the documentation here:
http://code.google.com/apis/recaptcha/intro.html



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum