mirror of
https://codeberg.org/ThisIsMiseryy/techstore
synced 2026-05-14 14:52:04 +00:00
fix: login non funzionante in apache (container)
This commit is contained in:
+12
-11
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user