![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 2 Pomógł: 0 Dołączył: 20.03.2012 Ostrzeżenie: (0%) ![]() ![]() |
<html>
<head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-2"> <title> Formularz </title> </head> <body> <form method="post" action="logowanie.php"> nick: <input type="text" name="nick" size="15" /> <br/> hasło: <input type="password" name="pass" size="15" /> <br/> <input type="submit" value="Create"> </form> </body> </html> --------------------------------------------------------------------------------------------------------------------------------------------------- <?php require('config.php'); $nick = $_POST['nick']; $pass = $_POST['pass']; $plik = "$dirplayer/$nick.txt"; $dane = fopen($plik, "r"); $nick1=fgets($dane); $pass1=fgets($dane); fclose($dane); echo "$nick1"; echo "$nick"; if($pass == $pass1) echo "Tak"; else echo "Nie<br>"; ?> |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 25.06.2025 - 19:20 |