salve

questo e uno script x generare password:

<?php

function randomPassword () {
$length ="6"; // the length of the password required
$possible = '23456789' .
'abcdefghijkmnpqrstuvwxyz' ;

$str ="";
while (strlen($str) < $length) {
$str.=substr($possible, (rand() % strlen($possible)),1);
}
return($str);
}
echo("<table border=0 Cellspacing=3 cellpadding=5>");
echo("<tr><td align=right bgcolor=#EDEDED>Your Random Password is: ");
echo("</td><td align=left bgcolor=#EDEDED>".randomPassword()."");

exit();
?>

come si fa a far comparire la password in una textbox al posto della cella e a far attivare l'evento alla pressione di un tasto al posto del tasto refresh?

vi ringrazio anticipatamente