Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Oct 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    adding captcha to an html form

    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:

    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:

    Code:
    <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:
    Code:
    <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.

  • #2
    Regular Coder
    Join Date
    Jul 2003
    Posts
    117
    Thanks
    0
    Thanked 17 Times in 17 Posts
    You can try recaptcha
    you have to modify the PHP script as well. See the documentation here:
    http://code.google.com/apis/recaptcha/intro.html


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •