<?php session_start(); ?>
<html>
<head>
<title>Proste Logowanie</title>
<meta http-equiv="content-type" content="text/html; charset=windows-1250">
</head>
<body>
<?php
if(isSet($_SESSION['user']))
{
echo "<b>Witaj: </b>".$_SESSION['user'];
echo "<a href=\"logout.php\">Wyloguj się</a>";
}
else{
?>
<form method='POST' action='sprawdz.php'>
<table>
<tr><th align="right">Login:</th><td align="left"><input type='text' name='login'></td></tr>
<tr><th align="right">Hasło:</th><td align="left"><input type='password' name='haslo'></td></tr>
<tr><td align="center" colspan="2"><input type='submit' value='Wy¶lij' name='logowanie'></td></tr>
</table>
</form>
<?php
}
?>
</body>
</html>