Donate Share

Slooze PHP Web Photo Album

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

Recaptcha

You are viewing a single message from this topic. View all messages.

  1. 2008-09-02 19:27:45 UTC
    Hello,

    I am trying to integrate Recaptcha into my slooze album, but my problem is I know completely nothing about php so I do not know where to start.

    Here is the code from Recaptcha (http://recaptcha.net/plugins/php/):

    require_once('recaptchalib.php');
    $publickey = "..."; // you got this from the signup page
    echo recaptcha_get_html($publickey);

    Then they say put this code with the code that processes form submission:

    require_once('recaptchalib.php');
    $privatekey = "...";
    $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 . ")");
    }

    So which php file would this code go in? Will this even work with slooze? Are there better captcha codes available?

    There is also a library to download (recaptchalib.php), which I have done.


    BTW- Thanks for the excellent program! Even a complete php idiot as myself was able to get it working, and it is perfect for my needs. Thanks!!

    -Jano
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.