fix: login non funzionante in apache (container)

This commit is contained in:
2026-04-15 11:20:15 +02:00
parent 3ffa3435a4
commit a8690feafc
+16 -15
View File
@@ -1,21 +1,10 @@
<?php
session_start();
include 'db_conf.php';
?>
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login - TechStore</title>
<link rel="stylesheet" href="assets/style.css">
</head>
<body>
<?php
$error = '';
$error = '';
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$email = $_POST['email'];
$password = $_POST['password'];
@@ -47,8 +36,20 @@ include 'db_conf.php';
} else {
$error = 'Errore nel database.';
}
}
?>
}
$conn->close();
?>
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login - TechStore</title>
<link rel="stylesheet" href="assets/style.css">
</head>
<body>
<form action="" method="POST">
<h2>Login</h2>
<label for="email">Indirizzo e-mail:</label>