Update controller.PHP
This commit is contained in:
parent
228f564762
commit
f54ad07bca
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue