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 8064159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T11:17:07+00:00 2026-06-05T11:17:07+00:00

Alright so I’m trying to get captcha to work here and I have this

  • 0

Alright so I’m trying to get captcha to work here and I have this little error detecting thing that looks like this. I’m not going to paste the entire page as that would be way too long, only the essentials

page1

    <?php require_once($_SERVER['DOCUMENT_ROOT'] . '/include/recaptchalib.php');
  echo recaptcha_get_html($reCaptcha_publickey); ?>
    <?php  echo $_SESSION['devtest'];?>

page2

if (!$resp->is_valid) 
{
    $_SESSION['devtest'] = $resp->error . "testzzz"; // DEVELOPING, DELETE THIS
    $errors = $errors . "'1',";
    // Returns errors to page1
}

Now the $errors does have the ‘1’, in it, it echoes the “testzzz” part of devtest fine but it displays no error.
Anyone know what I’m doing wrong? Thanks

EDIT: I followed this guide for the most part, i only changed the code for the if statement https://developers.google.com/recaptcha/docs/php

  • 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-06-05T11:17:08+00:00Added an answer on June 5, 2026 at 11:17 am

    $resp->error is what you’re looking for, $resp->is_valid is a Boolean value, and I think it’s deprecated since reCaptcha became part of googles main tools so you might be checking a variable that doesn’t exits. so (!$resp->is_valid) always returns TRUE.

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

Sidebar

Related Questions

Alright, so I have a query that looks like this: SELECT `orders`.*, GROUP_CONCAT( CONCAT(
Alright. I have a query that looks like this: SELECT SUM(`order_items`.`quantity`) as `count`, `menu_items`.`name`
Alright so this is a bizarre cross platform thing that I'm experiencing with text
Alright, here is my problem i'm trying to solve. I have an index page
Alright, so here is the property I have public List<String> names{ get{ lock(_names) return
Alright, here we go! I am currently developing an iPhone app that will work
Alright, I am trying to accomplish this: When a user clicks a button that
Alright I don't see why this isnt working. It seems pretty simple. Here is
Alright so I have no idea how to even begin doing this But basically
Alright, here I am again trying to write code from scratch and I can't

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.