@ Sballerio
Grazie prima di tutto per il tempo che mi dedichi...
Allora ho ricreato la pagina Html in questo modo :
Codice PHP:
<head>
<script type="text/javascript">
var dfx = 'delta';
function itab_about_enc_key()
{
var k = 0;
for (var i=0; i<dfx.length; i++)
{
k = k+dfx.charCodeAt(i);
}
if (k == 0)
{
alert('Someone has altered something in here that they should not have been doing. >.<');
}
return k;
}
function enc(c)
{
var k = itab_about_enc_key();
var r = '';
if (k > 0)
{
if (c.length > 0)
{
for (var i=0; i<c.length; i++)
{
var x = c.charCodeAt(i) +k;
y = String(1000+x).substr(1)
r = r + y;
}
}
}
return r;
}
function out()
{
document.getElementById('uscita').value = enc(document.getElementById('cripta').value);
}</script>
</head>
<body>
<form action="" method="post" name="f0" >
<div align="center">
<textarea name="f1" cols="80" rows="10" id="cripta">pippo</textarea>
<input name="g1" type="button" onBlur="out()" value="Invia" />
</p>
</div>
</form>
<form action="" method="post" name="f3">
<div align="center">
<textarea name="f4" cols="80" rows="10" id="uscita"></textarea>
</div>
</form>
</body>
</html>
Ma non va... chiedo ma il tag textarea ha value come valore? sicuramente sbaglio qualcosa...
Grazie
Ciao