Código PHP:
Ver original
<?php function createpassword() { $chars = $line["rndpasschr"]; $i = 0; $pass = ""; while ($i <= $line["rndpasschrlength"]-1) { $pass = $pass . $tmp; $i++; } return($pass); } $adduserstatus = "10"; $password = createpassword(); } ?> <form id="addgen" name="addgen" action="" method="post"> <input type="submit" name="badduser" value="random" tabindex="20" class="submit" accesskey="r" title="(ALT+R)"> </form> <?php if ($adduserstatus == "10") { print($password); } ?>