some more changes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user