<?php include ('baza.php'); switch($_GET['option']) { case "result": $error1 = "<a href=\"index.php?action=register\">Powrót</a><br /><br />"; $zapytanie_user = "SELECT `name`, `password` FROM `uzytkownicy` WHERE name = '$user_login' AND password = '$user_password'"; { } else { } break; default; ?> <form action="index.php?action=logowanie&option=result" method="POST"> <table border="0" width="100%"> <tr> <td width="12%">Login:</td> <td wdith="88%"><input type="text" size="20" maxlength="20" name="user_login"></td> </tr> <tr> <td>Hasło:</td> <td><input type="password" size="16" maxlength="16" name="user_password"></td> </tr> </table><br /><br /> <input type="submit" value="Logowanie"> </form> <?php } ?>
Wyskakuje błąd:
Cytat
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\xampp\xampp\htdocs\forum\baza.php:17) in C:\xampp\xampp\htdocs\forum\logowanie.php on line 2
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\xampp\htdocs\forum\baza.php:17) in C:\xampp\xampp\htdocs\forum\logowanie.php on line 2
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\xampp\htdocs\forum\baza.php:17) in C:\xampp\xampp\htdocs\forum\logowanie.php on line 2
Co może być przyczyną?
Aha, próbowałem oczywiście z ob_start(), ale to nic nie daje, dlatego założyłem wątek.