prepare("INSERT INTO residents (first_name, last_name, email, phone_number, date_of_birth, program, status) VALUES (?, ?, ?, ?, ?, ?, ?)"); $stmt->execute([ $_POST['first_name'], $_POST['last_name'], $_POST['email'], $_POST['phone_number'] ?? null, $_POST['date_of_birth'] ?? null, $_POST['program'] ?? 'General Support', $_POST['status'] ?? 'Active' ]); $success_message = "Resident '" . htmlspecialchars($_POST['first_name']) . " " . htmlspecialchars($_POST['last_name']) . "' has been successfully added."; } catch (PDOException $e) { $error_message = 'Database error: Could not add resident. ' . $e->getMessage(); } } } ?> New Resident Intake - Continuum of Healing

New Resident Intake Form

← Back to Dashboard