3 Replies Latest reply on Aug 29, 2012 9:23 PM by Tahoe Systems

    reCaptcha question, please help?

    Tahoe Systems



      I am trying to set up the reCaptcha function on my website and i am having some difficulty understanding some of the setup criteria.


      From the way it looks, it seems that I would have to have two actions in my form. This can't be correct is it??


      Here is my form:


      <form class="required-form" action="http://www.jeurmston.com/php/formmail_request.php" method="post" name"SampleForm">

                     <input type="hidden" name="good_url" value="http://www.jeurmston.com/thankyou.html" />

                     <input type="hidden" name="env_report" value="REMOTE_HOST,REMOTE_ADDR,HTTP_USER_AGENT,AUTH_TYPE,REMOTE_USER">    

                     <input type="hidden" name="recipients" value="jim@jeurmston.com" /> 

                     <input type="hidden" name="subject" value="Request A Quote - Webform Mailer">

                     <input type="hidden" name="mail_options" value="FromAddr=jim@jeurmston.com" />


                      <ol class="forms">



                            <label for="name"> Name of Property:</label>

                            <input type="text" name="name" id="name" />




                            <label for="company"> Name of Company/Owner:</label>

                            <input type="text" name="company" id="company" />




                            <label for="address1"><em class="required">*</em> Address / APN #:</label>

                            <input type="text" name="address1" id="address1" class="required" />




                            <label for="address2"> Address 2:</label>

                            <input type="text" name="company" id="company" />





                            <label for="city"><em class="required">*</em> City:</label>

                            <input type="text" name="city" id="city" class="required" />




                            <label for="state"> State:</label>

                                      <p class="state">Nevada</p>







                            <label for="property[]"><em class="required">*</em> Use of Property:</label>

                            <select name="property[]" multiple id="property[]" class="required">

                                      <option value="select" selected>Please Select...

                              <option value="assembly">Assembly/Meeting Place

                              <option value="commer">Commercial General

                              <option value="health">Health Care

                              <option value="indust">Industrial

                              <option value="land">Land

                              <option value="lodgeHosp">Lodging & Hospitality

                              <option value="mixed">Mixed-Use

                              <option value="multiFam">Multi-Family

                              <option value="office">Office

                              <option value="retail">Retail

                              <option value="senior">Senior Housing

                              <option value="shopping">Shopping Center

                              <option value="special">Special Purpose

                              <option value="sportEnt">Sports & Entertainment





                            <label for="report[]"><em class="required">*</em> Report Type:</label>

                                      <select name="report[]" multiple id="report[]" class="required">

                                        <option value="select" selected>Please Select...

                                  <option value="self">Self Contained

                                  <option value="summary">Summary

                                  <option value="restricted">Restricted

                                  <option value="advise">Unknown (please advise)







                            <label for="client_company"> Client Company:</label>

                            <input type="text" name="client_company" id="client_company" class="required" />




                            <label for="client_first"><em class="required">*</em> Client First Name:</label>

                            <input type="text" name="client_first" id="client_first" class="required" />




                            <label for="client_last"><em class="required">*</em> Client last Name:</label>

                            <input type="text" name="client_last" id="client_last" class="required" />





                            <label for="client_phone"><em class="required">*</em> Client Phone:</label>

                            <input type="text" name="client_phone" id="client_phone" class="required" />





                            <label for="client_email"><em class="required">*</em> Client Email:</label>

                            <input type="text" name="client_email" id="client_email" class="required" />






                            <label for="message"> Message:</label>

                            <textarea name="message" id="message" ></textarea>





                          <li class="buttons submit">

                            <button type="submit">Submit</button>




                          <li class="buttons reset">

                            <button type="reset">Reset Form</button>








      And here is the reCpatcha example from thier website:




          <form action="" method="post">







      // Get a key from https://www.google.com/recaptcha/admin/create

      $publickey = "";

      $privatekey = "";



      # the response from reCAPTCHA

      $resp = null;

      # the error code from reCAPTCHA, if any

      $error = null;



      # was there a reCAPTCHA response?

      if ($_POST["recaptcha_response_field"]) {

              $resp = recaptcha_check_answer ($privatekey,






              if ($resp->is_valid) {

                      echo "You got it!";

              } else {

                      # set the error code so that we can display it

                      $error = $resp->error;



      echo recaptcha_get_html($publickey, $error);



          <input type="submit" value="submit" />





      Exactly where am I supposed to insert this information? This is what i do not completely understand. Also, as far as the PHP, it says that I will need a php file called verify.php. Am I supposed to create a new file? Or is it possible to add this to my already existing php validation script?


      Sorry I am so confused by this, it is my first time setting it up. Any help will be much appreciated. Thank you all so much!