Visualizzazione dei risultati da 1 a 3 su 3

Discussione: recaptcha

  1. #1
    Utente di HTML.it
    Registrato dal
    Dec 2005
    Messaggi
    232

    recaptcha

    Ragazzi chi mi può spiegare come installare il servizio recaptcha? Il sito è in inglese e non capisco molto....

    Oppure come posso creare un captcha che, al posto delle lettere da scrivere, abbia la possibilità di inserire il risultato di un'operazione?

    Grazia mille questo problema di spamm non si risolve....

  2. #2

  3. #3
    Utente di HTML.it
    Registrato dal
    Dec 2005
    Messaggi
    232
    Ho preso il codice standard di reCaptcha:

    <?php

    require_once('recaptchalib.php');

    // Get a key from http://recaptcha.net/api/getkey
    $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);
    ?>

    Come posso scomporre questo codice in modo da inserire l'immagine nel form e poi la verifica dei datti inserirla nella action (nomefile.php) del mio sito?

    grazie mille

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.