Skip navigation
Tahoe Systems
Currently Being Moderated

reCaptcha question, please help?

Aug 29, 2012 12:11 PM

Hello!!

 

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">

                   

                    <li>

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

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

                    </li>

                   

                    <li>

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

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

                    </li>

                  

                    <li>

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

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

                    </li>

                   

                    <li>

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

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

                    </li>

 

 

                    <li>

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

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

                    </li>

                   

                    <li>

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

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

                    </li>

 

 

 

 

                    <li>

                      <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

                       </select>

                    </li>

                   

                    <li>

                      <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)

                        </select>

                    </li>

                   

 

 

                    <li>

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

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

                    </li>

           

                    <li>

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

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

                    </li>

  

                    <li>

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

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

                    </li>

 

 

                    <li>

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

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

                    </li>

 

 

                    <li>

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

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

                    </li>

 

 

  

                    <li>

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

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

                    </li>

                   

 

 

                    <li class="buttons submit">

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

                       </li>

 

 

                    <li class="buttons reset">

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

                       </li>

 

 

                        

                </ol>

              </form>

 

And here is the reCpatcha example from thier website:

 

<html>

  <body>

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

<?php

 

 

require_once('recaptchalib.php');

 

 

// 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,

                                        $_SERVER["REMOTE_ADDR"],

                                        $_POST["recaptcha_challenge_field"],

                                        $_POST["recaptcha_response_field"]);

 

 

        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);

?>

    <br/>

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

    </form>

  </body>

</html>

 

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!

 

-Greg


 
Replies
  • Currently Being Moderated
    Aug 29, 2012 1:46 PM   in reply to Tahoe Systems

    You might have better luck using the www.tectite.com forums, support and or help files. They were made specifically for this type of question regarding their formmail script...

     

    http://www.tectite.com/vbforums/

     

    http://www.tectite.com/support.php

     

    http://www.tectite.com/fmhowto/recaptcha.php

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points