
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\usr\www\townoflaugh\index.php:20) in C:\usr\www\strona\log.php on line 2
Kod Strony:
<?php function checkPass($user, $pass) { $result = false; if($arr[0] != $user) continue; if($arr[1] == $pass){ $result = true; break; } } return $result; } } if(checkPass($_POST['user'], $_POST['haslo'])){ $_SESSION['zalogowany'] = true; } } ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-type" content="text/html; charset=iso-8859-2"> </head> <body> <div align='left'> <form name = "formularz1" action = "glowna.php" method = "POST" > <table border="0"> <tr> <td colspan="2" align="center"> Podaj nazwę i hasło </td> <td> <input type="text" name="user"> </td> <td> <input type="password" name="haslo"> </td> <td colspan="2" align="center"> <input type="submit" value="Wejdź"> </td> </form> </div> </body> </html>
Czy może mi ktoś z łaski swojej pomóc??