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:
+16
-15
@@ -1,21 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
session_start();
|
session_start();
|
||||||
include 'db_conf.php';
|
include 'db_conf.php';
|
||||||
?>
|
|
||||||
|
|
||||||
<!DOCTYPE html>
|
$error = '';
|
||||||
<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 = '';
|
|
||||||
|
|
||||||
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||||
$email = $_POST['email'];
|
$email = $_POST['email'];
|
||||||
$password = $_POST['password'];
|
$password = $_POST['password'];
|
||||||
|
|
||||||
@@ -47,8 +36,20 @@ include 'db_conf.php';
|
|||||||
} else {
|
} else {
|
||||||
$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