co robie zle?
Kod
<html>
<head>
<title>Logowanie do bazy danych</title>
</head>
<body>
<?php
if($user=="jakisuzytkownik"&&
$haslo=="jakieshaslo");
$user = $_GET['user']; $haslo = $_GET['haslo'];
{
echo "Zostales zalogowany";
header('Location: program.php');
}
else
{
echo "Podaj poprawne dane";exit;
}
<Form Action="index.html" POST='Get'>
uzytkownik: <input Name ="user">
haslo:<input Name="haslo" Type="Password">
<input Type="Submit" Value="ok"
?>
</head>
</body>
</html>
<head>
<title>Logowanie do bazy danych</title>
</head>
<body>
<?php
if($user=="jakisuzytkownik"&&
$haslo=="jakieshaslo");
$user = $_GET['user']; $haslo = $_GET['haslo'];
{
echo "Zostales zalogowany";
header('Location: program.php');
}
else
{
echo "Podaj poprawne dane";exit;
}
<Form Action="index.html" POST='Get'>
uzytkownik: <input Name ="user">
haslo:<input Name="haslo" Type="Password">
<input Type="Submit" Value="ok"
?>
</head>
</body>
</html>