some more changes

This commit is contained in:
2024-01-24 14:58:41 +01:00
parent b4d376562d
commit bfae6f8365
4 changed files with 3 additions and 15 deletions

View File

@@ -44,7 +44,8 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
$result = $insertStmt->execute();
if ($result) {
echo "Registration successful. <a href='pages/login.html'>Login here</a>.";
echo "Registration successful. Redirecting to login page...";
header('Refresh: 2; URL=/login'); // Redirect after 2 seconds
} else {
echo "Error: " . $mysqli->error;
}