Kod
if(!$_SESSION['login']){
echo "<form action=\"log/login.php\">
<table width=\"100\" border=\"0\">
<tr>
<td><font style=\"color:white; font-size:11px;\">Login:</font></td>
<td><input type=\"text\" size=\"12\" name=\"login\" style=\"font-family:Tahoma; color:#337FBD; font-size:11px;\" /></td>
</tr>
<tr>
<td><font style=\"color:white; font-size:11px;\">Hasło:</font></td>
<td><input type=\"password\" name=\"haslo\" size=\"12\" style=\"color:#337FBD; font-size:11px;\" /></td>
</tr>
<tr>
<td colspan=\"2\"><center><input type=\"submit\" style=\"font-family:Arial; font-size:11px;\" value=\"Zaloguj się\" /></center></td>
</tr>
</table>
</form>";
}else{
echo "<a href=\"log/logout.php\">Wyloguj się</a>";
}
echo "<form action=\"log/login.php\">
<table width=\"100\" border=\"0\">
<tr>
<td><font style=\"color:white; font-size:11px;\">Login:</font></td>
<td><input type=\"text\" size=\"12\" name=\"login\" style=\"font-family:Tahoma; color:#337FBD; font-size:11px;\" /></td>
</tr>
<tr>
<td><font style=\"color:white; font-size:11px;\">Hasło:</font></td>
<td><input type=\"password\" name=\"haslo\" size=\"12\" style=\"color:#337FBD; font-size:11px;\" /></td>
</tr>
<tr>
<td colspan=\"2\"><center><input type=\"submit\" style=\"font-family:Arial; font-size:11px;\" value=\"Zaloguj się\" /></center></td>
</tr>
</table>
</form>";
}else{
echo "<a href=\"log/logout.php\">Wyloguj się</a>";
}
Tu mam do was pytanie: czemu nawet jak użytkownik jest zalogowany nie pojawia mi się napis "Wyloguj się"?