Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7060851
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:24:09+00:00 2026-05-28T04:24:09+00:00

I am hoping to get a quick answer to a simple problem. I am

  • 0

I am hoping to get a quick answer to a simple problem.

I am trying to use the ReCaptcha on a site and the form is currently submitting to salesforce.com.

In the ReCaptcha instructions it tells me that the verify.php should run then submit if it passes I suppose.

Specifically like so:

   <?php
  require_once('recaptchalib.php');
  $privatekey = "your_private_key";
  $resp = recaptcha_check_answer ($privatekey,
                                $_SERVER["REMOTE_ADDR"],
                                $_POST["recaptcha_challenge_field"],
                                $_POST["recaptcha_response_field"]);

  if (!$resp->is_valid) {
    // What happens when the CAPTCHA was entered incorrectly
    die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." .
         "(reCAPTCHA said: " . $resp->error . ")");
  } else {
    // Your code here to handle a successful verification
  }
  ?>

If the original form is to submit like the following:

 action="https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="POST"

How would I handle this within the php script above?
Any help is appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T04:24:09+00:00Added an answer on May 28, 2026 at 4:24 am

    Short answer: you can’t.

    Long answer: The action isn’t controlled by you, it’s controlled by salesforce. You could perhaps make the action your verify script and then post the variables for the user but this would most likely screw up their session at salesforce. There isn’t really any practical way around that. (I mean you could try to reverse engineer / rebuild the session for the user but it’s going to likely be a lot of work to get it right and then they could change something which causes it to break)

    Your best bet would be to have a separate log-in which uses ReCaptcha and then put your original form behind the login.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to get started on what I'm hoping will be a relatively quick
I am currently hoping to use a PropertyGrid to allow users to edit some
I'll make this quick because I'm hoping to get it fixed as quickly as
I am really hoping to get a definitive answer to this. I have a
I am hoping to get some help solving a problem that I'm sure many
this is a bit of a newbie question but hoping I can get some
I am hoping to find how I can get the kb size of a
I didn't quite get / see what I was hoping for and maybe missed,
Hoping someone can provide an answer with this, although it's not 100% programming related.
From an external site, I need to present a form that POSTS data to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.