prepare("SELECT onboarding_completed, full_name, university, graduation_year FROM users WHERE id = ?"); $stmt->execute([$_SESSION['user_id']]); $user = $stmt->fetch(); if ($user['onboarding_completed']) { header("Location: dashboard.php"); exit; } $error = ''; if ($_SERVER['REQUEST_METHOD'] === 'POST') { $degree_program = trim($_POST['degree_program'] ?? ''); $country = trim($_POST['country'] ?? ''); $skills = isset($_POST['skills']) ? implode(',', $_POST['skills']) : ''; $years_experience = (int)($_POST['years_experience'] ?? 0); $previous_startup_exp = isset($_POST['previous_startup_exp']) ? 1 : 0; $previous_startup_desc = trim($_POST['previous_startup_desc'] ?? ''); $startup_industries = isset($_POST['startup_industries']) ? implode(',', $_POST['startup_industries']) : ''; $preferred_stage = $_POST['preferred_stage'] ?? 'Idea'; $commitment_level = $_POST['commitment_level'] ?? 'part-time'; $risk_tolerance = $_POST['risk_tolerance'] ?? 'medium'; $preferred_working_style = $_POST['preferred_working_style'] ?? 'hybrid'; $availability = trim($_POST['availability'] ?? ''); $equity_expectations = trim($_POST['equity_expectations'] ?? ''); $preferred_co_founder_skills = isset($_POST['preferred_co_founder_skills']) ? implode(',', $_POST['preferred_co_founder_skills']) : ''; $bio = trim($_POST['bio'] ?? ''); if (empty($degree_program) || empty($country) || empty($skills) || empty($bio)) { $error = "Please fill in all mandatory fields."; } else { $stmt = db()->prepare("UPDATE users SET degree_program = ?, country = ?, skills = ?, years_experience = ?, previous_startup_exp = ?, previous_startup_desc = ?, startup_industries = ?, preferred_stage = ?, commitment_level = ?, risk_tolerance = ?, preferred_working_style = ?, availability = ?, equity_expectations = ?, preferred_co_founder_skills = ?, bio = ?, onboarding_completed = 1 WHERE id = ?"); try { $stmt->execute([ $degree_program, $country, $skills, $years_experience, $previous_startup_exp, $previous_startup_desc, $startup_industries, $preferred_stage, $commitment_level, $risk_tolerance, $preferred_working_style, $availability, $equity_expectations, $preferred_co_founder_skills, $bio, $_SESSION['user_id'] ]); header("Location: dashboard.php"); exit; } catch (PDOException $e) { $error = "Database error: " . $e->getMessage(); } } } $platformName = defined('PLATFORM_NAME') ? PLATFORM_NAME : 'Gatsby'; $all_skills = ['Technical (Full-stack)', 'Technical (AI/ML)', 'Technical (Mobile)', 'Product Management', 'UI/UX Design', 'Marketing & Growth', 'Sales & Biz Dev', 'Finance', 'Operations', 'Legal']; $all_industries = ['AI & Machine Learning', 'Fintech', 'SaaS', 'Climate Tech', 'Health Tech', 'Marketplaces', 'E-commerce', 'EdTech', 'Web3 & Crypto', 'Hardware']; ?> Founder Onboarding — <?= htmlspecialchars($platformName) ?>

Partner Questionnaire

Tell us about your background to help us find the best co-founder matches.

1. Basic Information

2. Professional Information

3. Startup Interests

4. Founder Preferences