claro q hemos entenido,, pero en fin:
Código PHP:
<?
$username = "sito";
$password = "tito";
//END CONFIG
echo "<script language='javascript'>";
echo "function pasuser(form) {";
echo "if (form.id.value=='$username') { ";
echo "if (form.pass.value=='$password') { ";
echo "location='login.php?show=member' ";
echo "} else {";
echo "alert('Invalid Password')";
echo "}";
echo "} else { alert('Invalid UserID')";
echo "}";
echo "}";
echo "</script>";
if ($show == "info") {
print "PHP JAVA Login By Daniel Brown";
}
elseif ($show == "member") {
echo "HHHHHHHHHHHHHHHOOOOOOOOOOLLLLLLLLLLLLLAAAAAA";
} else {
?>
<center>
<table bgcolor="white" cellpadding="12" border="1">
<tr><td colspan="2"><center><h1><i><b>Login
Area</b></i></h1></center></td></tr>
<tr><td>
<h1><i><b>Usuario:</b></i></h1>
</td><td><form name="login"><input
name="id" type="text"></td></tr>
<tr><td>
<h1><i><b>Contrase:</b></i></h1>
</td><td><input name="pass"
type="password"></td></tr>
<tr><td><center><input type="button" value="Login"
onClick="pasuser(this.form)"></center></td><td><center><br><input
type="Reset"></form></td></tr></table>
</center>
<p><br>
<?
}
?>
Asi esta mejor
Salu2