Mam problem ponieważ w filmie gdy stworzyłem plik zaloguj.php nie dość że adres stał się taki "http://localhost/LOgowanie/index.php/index.php" to po wpisaniu hasła nie przekierowywuje mnie nigdzie tylko nadal jest an stronie logowania tylko koncówka w adresie mienia sie z index.php na zaloguj.php
<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="UTF-8">
<title>fajniee</title>
</head>
<body>
Gra fajna <br/><br/>
<form action="zaloguj.php" method="post">
Login:<br/> <input type="text" name="login"/> <br/>
Hasło:<br/> <input type="password" name="haslo"/> <br/><br/>
<input type="submit" value="Zaloguj się"/>
</form>
</body>
</html>
<?php
require_once "conect.php";
$polaczenie = @new mysqli($host,$db_user,$db_password,$db_name);
if ($polaczenie->conect_errno!=0)
{
echo "Error: ".$polaczenie->conect_errno ;
}
else
{
$login = $_POST['login'];
$haslo = $_POST['haslo'];
echo "działa";
$polaczenie->close();
}
?>
<?php
$host ="localhost";
$db_user = "root";
$db_password ="";
$db_name ="logowanie";
?>