Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

integrating captcha into clients php contact form

Featured Replies

Ok, I'm a total php beginner

 

I used Jems php contact form for a client, who would also like it to use captcha.

 

I tried to install it using the directions on the captcha site, but it might as well have been written in Chinese!

 

Any php gurus out there kind enough to help me out?

 

fanks!

Have you got any code we can take a look at? I could try and help you but without actual code to look at I can't.

  • Author

temp site can be viewed here

 

No comments on design please.... I know it's not my style ;)

And this does not work?

 

 

      <form method="post" action="verify.php">
       <?php
         require_once('recaptchalib.php');
         $publickey = "your_public_key";
         echo recaptcha_get_html($publickey);
       ?>
       <input type="submit" />
     </form>

 

 

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

   die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." .
        "(reCAPTCHA said: " . $resp->error . ")");
 } else {

 }
 ?>

 

Source: http://code.google.com/apis/recaptcha/docs/php.html

 

I assumed you were referring to the most popular, reCaptcha.

Edited by brightonmike

  • Author

To be honest.... i don't know where to put it :blush1:

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.