A parte che ho poche informazioni sul codice (ad esempio so solo che $login_success e $User assumono valori booleani e la funzione lget() e eget() abbiamo come parametro una stringa, ma non so nulla come vengono impostati). Potresti riscrivere il codice in questa maniera, verifica se funziona:
Codice PHP:
<?php
$form = "
<form name='login' action='login1.php?room=Login' method='POST'>
<table>
<tr height=30>
<td width=90>Nome :</td>
<td width=150><input type=text name='username' maxlength=20 size=10 /></td>
</tr>
<tr height=30>
<td width=90>Password :</td>
<td width=150><input type=password name='password' maxlength=20 size=10 /></td>
</tr>
<tr height=30>
<td width=90><input class=newbutton type=hidden name=\"Login\" value='true' /></td>
<td width=150><input class=newbutton type=submit name='submit' value='Login' /></td>
</tr>
</table>
</form>
";
if (isset($_POST['username']) && isset($_POST['password']) && isset($_POST['Login']) && $_POST['Login'] == 'true') {
if ($login_success)
{
echo "<center>" . lget('success') . "</center>";
}
else
{
echo "<center>" . eget('wrongcredentials') . "</center>";
echo $form;
}
} elseif (isset($_POST['Login'])) {
echo "<center>" . eget('cheat') . "</center>";
echo $form;
}
if ($User) {
echo "<center>" . eget('logged') . "</center>";
echo $form;
}
?>