prepare("SELECT * FROM attendees WHERE email = ?"); $stmt->execute([$email]); $attendee = $stmt->fetch(); if ($attendee && password_verify($password, $attendee['password'])) { $_SESSION['user_id'] = $attendee['id']; header('Location: dashboard.php'); exit; } else { $error = 'Invalid email or password. Would you like to register for the webinar?'; } } catch (PDOException $e) { error_log($e->getMessage()); $error = 'A database error occurred. Please try again later.'; } } ?> Login - Webinar Platform

Welcome Back

Login to access your dashboard