Originariamente inviato da cubalibre810
Io dico che è il truetype, cmq basta che ci posti il contenuto di prova.php e vediamo subito
non penso che sia questo il problema, perche' ho un forum installato su un sito sempre sullo stesso server e il captcha funziona...
Avro' sbagliato io a mettere qualcosa... cmq ecco i codici:
inserisci.php
Codice PHP:
<?php
error_reporting(E_ALL);
require_once('captcha.class.php');
session_start();
$captcha=new captcha();
$act=isset($_GET['act']) ? $_GET['act'] : '';
switch($act):
case('img'):
$captcha->offuscamento=3;
$captcha->genera($_GET['stringa']);
break;
case('check'):
if($_SESSION['stringa'] == $_POST['codice']){
echo 'nome: '.$_POST['nome'];
echo '
';
echo 'email: '.$_POST['email'];
} else
echo 'Il codice non corrisponde all\'immagine';
break;
default:
$stringa=$captcha->stringa_casuale();
$_SESSION['stringa']=$stringa;
echo '<form method="post" action="'.$_SERVER['PHP_SELF'].'?act=check">
';
break;
endswitch;
?>
<html>
<head>
<title>Guestbook</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="stile.css" type="text/css">
</head>
<script>
<!--
function campiobbligatori(){
var f = document.guestbook;
if(f.nome.value == ""){
alert("Il campo \"nome\" non \è stato compilato")
f.nome.focus();
return false;
}
if(f.email.value == ""){
alert("Il campo \"email\" non \è stato compilato")
f.email.focus();
return false;
}
if(f.messaggio.value == ""){
alert("Il campo \"messaggio\" non \è stato compilato")
f.messaggio.focus();
return false;
}
}
return true;
}
// -->
</script>
<body bgcolor="#FFFFFF" text="#000000">
<div align="center">
<form name="guestbook" action="'.$_SERVER['PHP_SELF'].'?act=inserito.php" onSubmit="return campiobbligatori()" method="post">
<table width="500" border="0" cellspacing="1" cellpadding="5" bgcolor="#000000">
<tr bgcolor="#0099CC">
<td width="201"></td>
<td width="399">
<div align="center"> </div>
</td>
</tr>
<tr bgcolor="#E5EFF5">
<td style="padding-left:8px" width="201"><font face="Verdana" size="2">Nome:</font></td>
<td width="399">
<div align="center">
<input name="nome" type="text" size="35" class="guestbook" onMouseOver="this.className='guestbook2'" onMouseOut="this.className='guestbook'">
</div>
</td>
</tr>
<tr bgcolor="#E5EFF5">
<td style="padding-left:8px" width="201"><font face="Verdana" size="2">Email:</font></td>
<td width="399">
<div align="center">
<input name="email" type="text" size="35" class="guestbook" onMouseOver="this.className='guestbook2'" onMouseOut="this.className='guestbook'">
</div>
</td>
</tr>
<tr bgcolor="#E5EFF5">
<td style="padding-left:8px" width="201"><font face="Verdana" size="2">Sito
web:</font></td>
<td width="399">
<div align="center">
<input name="sito" type="text" size="35" class="guestbook" onMouseOver="this.className='guestbook2'" onMouseOut="this.className='guestbook'" value="http://">
</div>
</td>
</tr>
<tr bgcolor="#E5EFF5">
<td style="padding-left:8px" width="201"><font face="Verdana" size="2">Messaggio:</font></td>
<td width="399">
<div align="center">
<textarea name="messaggio" cols="35" class="guestbook" onMouseOver="this.className='guestbook2'" onMouseOut="this.className='guestbook'" rows="6"></textarea>
</div>
</td>
</tr>
<tr bgcolor="#E5EFF5">
<td style="padding-left:8px" width="201"><font face="Verdana" size="2">Codice
di approvazione:
[img]'.$_SERVER['PHP_SELF'].'?act=img&stringa='.$stringa.'[/img]</font></td>
<td valign=top width="399">
<div align="center"><font face="Verdana" size="1">Inserisci il codice
segreto in maiuscolo:
<input type="text" name="codice" size="35" class="guestbook" onMouseOver="this.className='guestbook2'" onMouseOut="this.className='guestbook'" value="">
</font></div>
</td>
</tr>
<tr bgcolor="#E5EFF5">
<td style="padding-left:8px" width="201"></td>
<td width="399">
<div align="center">
<input type="submit" name="Submit" value="Invia">
</div>
</td>
</tr>
<tr bgcolor="#0099CC">
<td style="padding-left:8px" width="201"></td>
<td width="399"></td>
</tr>
</table>
</form>
</div>
</body>
</html>
Tutto il codice php e' quello che serve per generare l'immagine...
Se poi qualcuno ha qualcosa di meglio ben venga 
P.S. una volta che il form viene inviato, deve andare a inserito.php
Sapete aiutarmi?