Update controller.PHP

This commit is contained in:
Dangrainage 2023-07-21 09:31:07 +02:00 committed by GitHub
parent 228f564762
commit f54ad07bca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,7 +25,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['signup'])) {
// Check if passwords match // Check if passwords match
if ($password === $confirm_password) { if ($password === $confirm_password) {
// Redirect to home page if sign-up is successful // Redirect to home page if sign-up is successful
header('Location: /'); header('Location: Redditlike.HTML');
exit; exit;
} else { } else {
// Display an error message if passwords don't match // Display an error message if passwords don't match