it will be directed to another page but it jus says "Logged in"
[EDIT] ok this is not right, i got it to stop messing up but it's wierd
[EDIT2] ok it works now, got the file name wrong + some other stuff:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Sams Login thing - based on Linkers version</title>
<style>
a:link {color:#000000; text-decoration:none; font-size:x-small}
a:hover {color:#FFFFFF; font-size:x-small}
a:visited {color:#000000; text-decoration:none; font-size:x-small}
</style>
</head>
<body>
<?php
//filename = login_php.php
if (!isset($tree) & !isset($bob) ) {
echo '
<form action="login_php.php" method="get">
<font face="verdana">
<table width="100" cellpadding="2" width="100">
<tr>
<td style="font-size:small; color:#FFFFFF; background-color:#0099CC">
Login <a href="register.php">- Register</a>
</td>
</tr>
<tr>
<td style="background-color:#CCCCCC">
<table>
<tr>
<td style="font-size:x-small">Username:</td><td><input type="text" size="10" name=tree></td>
</tr><tr>
<td style="font-size:x-small">Password:</td><td><input type="text" size="10" name=bob></td>
</tr>
</table>
<input type="submit" value="Login"> <input type="reset" value="Clear">
</td>
</tr>
</table>
</font>
</form>';
}
if ($tree == "N30F15H" & $bob == "pass") {
echo '"Login complete."';
} elseif ($tree == "guest" & $bob == "guest") {
echo '"Login as Guest complete."';
} else {
echo '"Login incomplete."';
}
?>
</body>
</html>