Create Account

Join the sacred community

Username will be visible to other community members
Use a strong password with letters and numbers

Already have an account? Sign In

Back to Home

if ($_SERVER['REQUEST_METHOD'] === 'POST') { $username = sanitize($_POST['username'] ?? ''); $email = sanitize($_POST['email'] ?? ''); $password = $_POST['password'] ?? ''; $password_confirm = $_POST['password_confirm'] ?? ''; $first_name = sanitize($_POST['first_name'] ?? ''); $last_name = sanitize($_POST['last_name'] ?? ''); if (!$username || !$email || !$password) { $error = 'Please fill in all required fields'; } elseif ($password !== $password_confirm) { $error = 'Passwords do not match'; } elseif (strlen($password) < 8) { $error = 'Password must be at least 8 characters long'; } else { $result = register_user($pdo, $username, $email, $password, $first_name, $last_name); if ($result['success']) { $success = 'Registration successful! Please log in.'; // Auto login login_user($pdo, $username, $password); header('Location: /'); exit(); } else { $error = $result['message']; } } } $page_title = 'Register — Epilda'; $page_description = 'Create your Epilda account'; ?> Epilda — Awaken Your Spirit
Epilda

Join Epilda

Create your account to join our spiritual community

Already have an account? Log in