Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [Logowanie] if else itp
Cr0n!x
post
Post #1





Grupa: Zarejestrowani
Postów: 40
Pomógł: 0
Dołączył: 24.05.2003

Ostrzeżenie: (0%)
-----


Jak zmienic ten skrypt zeby sprawdzal tez haslo. Teraz wystarczy ze poda sie login jaki jest i juz sie jest zalogowanym.


Kod
<?





if (file_exists("users/".$HTTP_POST_VARS['login'].".usr"))

{

require("users/".$HTTP_POST_VARS['login'].".usr");

}

if ($HTTP_POST_VARS['login']=="$password")

{

echo "zalogowany";

}

else

{

echo "Zly login/haslo lub usytkownik ".$HTTP_POST_VARS['login']." nie istnieje.";

}





?>


Dzieki
Go to the top of the page
+Quote Post

Posty w temacie
- Cr0n!x   [Logowanie] if else itp   14.06.2003, 13:22:28
- - KaMeLeOn   Re: [Logowanie] if else itp   14.06.2003, 13:26:22
- - Cr0n!x   Bardzo dziekuje meczylem sie z tym i nic ;/.   14.06.2003, 13:37:47


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 19.08.2025 - 15:19