prepare("SELECT * FROM users WHERE email = ?"); $stmt->execute([$email]); if ($stmt->fetch()) { set_flash('success', 'Password reset link has been sent to your email'); } else { set_flash('error', 'Email not found'); } header('Location: ' . SITE_URL . 'pages/forgot-password.php'); exit; } ?>

Forgot Password?

Enter your email to receive a reset link