Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Logowanie
kamil1114
post
Post #1





Grupa: Zarejestrowani
Postów: 117
Pomógł: 0
Dołączył: 22.02.2008
Skąd: katowice

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


Czy ten skrypt logowania jest bezpieczny ? Jeśli nie to prosiłbym o podanie co jest tutaj najbardziej nie bezpieczne.
Kod
<html>
<head>
</head>
<body>

<form method="POST">
Podaj login: </br>
<input type="text" name="login"></br>
Podaj haslo: </br>
<input type="password" name="haslo"></br>
<input type="submit" name="wyslane" value="Wyslij"></br>
<input type="reset" value="Wyczysc">
</form>
<?php

$wyslane=$_POST['wyslane'];
if(isset($wyslane)){
$login=$_POST['login'];
$haslo=$_POST['haslo'];

$id="login";
$hash="haslo";
if($login===$id && $haslo===$hash){

echo "zalogowane";

}

else echo "Złe dane";

}
else echo "Wypełnij pola";



?>

</body>
</html>


Ten post edytował kamil1114 8.01.2009, 18:13:36
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 23.12.2025 - 07:12