• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

reCaptcha question, please help?

Guest
Aug 29, 2012 Aug 29, 2012

Copy link to clipboard

Copied

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


TOPICS
Server side applications

Views

868

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 29, 2012 Aug 29, 2012

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 29, 2012 Aug 29, 2012

Copy link to clipboard

Copied

Thank you for the links and great advice, again, Jon. I really appreciate it. I will try my luck there and see how things go! Thank you!

-Greg

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 29, 2012 Aug 29, 2012

Copy link to clipboard

Copied

LATEST

Hey Jon, quick question if you don't mind?

I am using the reCaptcha on two seperate forms on my website, I have set them up correctly, as far as I know. They have the same exact setting but with the link, specific to each. Problem is, one form is working, and for no real apprent reason, the other form I am recieving an error: verify_failed. Here's the error part of the email.

The following error occurred in FormMail :

verify_failed

**********

Error=Image verification string missing. This is probably a fault on the server.

On google reCaptcha site I made sure that the key is site wide and I have checked and recheked my settings, and can't seem to find anything wrong...

Any ideas??

I really appreciate it.

Thank you!

-Greg

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines