fix: login non funzionante in apache (container)

This commit is contained in:
2026-04-15 11:20:15 +02:00
parent 3ffa3435a4
commit a8690feafc
+12 -11
View File
@@ -1,18 +1,7 @@
<?php <?php
session_start(); session_start();
include 'db_conf.php'; 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') {
@@ -48,7 +37,19 @@ include 'db_conf.php';
$error = 'Errore nel database.'; $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"> <form action="" method="POST">
<h2>Login</h2> <h2>Login</h2>
<label for="email">Indirizzo e-mail:</label> <label for="email">Indirizzo e-mail:</label>