ipotizzando che lo script del codice captcha sia nel file captcha.php ...

dopo
codice:
Ripeti Password:


<input name="password2" type="password" id="input">
inserisci
codice:
Digita il codice:

[img]captcha.php[/img]

<input name="captcha" type="text" id="captcha">
cambia
Codice PHP:
if(!isset($_POST['login']) OR !isset($_POST['password']) OR !isset($_POST['password2']) OR !isset($_POST['key']) OR !isset($_POST['codice'])) { 
con
Codice PHP:
if(!isset($_POST['login']) OR !isset($_POST['password']) OR !isset($_POST['password2']) OR !isset($_POST['key']) OR !isset($_POST['codice']) OR !isset($_POST['captcha'])) { 
cambia
Codice PHP:
if (( $login == "" ) || ( $password == "" ) || ( $password2 == "" ) || ($visione== "")) 
con
cambia
Codice PHP:
if (( $login == "" ) || ( $_POST['captcha'] == "" ) || ( $password == "" ) || ( $password2 == "" ) || ($visione== "")) 
dopo
Codice PHP:
$errore_accetta=false
aggiungi
Codice PHP:
$errore_captcha=false
dopo
Codice PHP:
if ( $password != $password2 ) {

$errore_password=true;


aggiungi
Codice PHP:
if ( $_POST['captcha'] != $_SESSION["vercode"] ) {

$errore_captcha=true;


dopo
Codice PHP:
if ($errorenick) {

echo 
"
Il nickname deve contenere solo lettere e numeri"
;


aggingi
Codice PHP:
if ($errore_captcha) {

echo 
"
Il codice captcha inserito non è corretto"
;


sostituisci
Codice PHP:
if (($errore) || ($errore_password) || ($errorenick)) { 
con
Codice PHP:
if (($errore) || ($errore_password) || ($errorenick) || ($errore_captcha)) { 
dovrebbe funzionare