Oto kody:
login.php
<?php $message=""; $login=$_POST['login']; if($login){ $uzytkownik=$_POST['user']; $host="localhost"; $db_user="user"; $db_password="haslo"; $database="autoryzacja"; if ($row[0] == 1){ exit; }elseif ($row[0] == 2){ exit; } else { $message="Nieprawidłowa nazwa użytkownika lub hasło"; } } ?> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"/> <HR> <title>Logowanie</title> </head> <body> <table> <tr> <td><b>Użytkownik: </td> <td><input name="user" type="text" id="user" /></td> </tr> <tr> <td><b>Hasło: </td> <td><input name="pass" type="password" id="pass" /></td> </tr> </table> <input name="login" type="submit" id="login" value="Zaloguj" /> <HR> </form> </body> </html>
Wpisy w lista.php:
<?php } ?> .....
Wpis w panel.php
<?php } ?> ....
Pozdrawiam