diff --git a/apply.php b/apply.php deleted file mode 100644 index 179ad4e..0000000 --- a/apply.php +++ /dev/null @@ -1,65 +0,0 @@ -prepare( - 'INSERT INTO applications (name, company, email, role) VALUES (?, ?, ?, ?)' - ); - $stmt->execute([$name, $company, $email, $role]); -} catch (PDOException $e) { - // In a real app, log this error. For now, redirect with a generic error. - error_log('DB Error: ' . $e->getMessage()); - header('Location: index.php?error=' . urlencode('A database error occurred.') . '#apply'); - exit; -} - -// 3. Email Notification -$to = getenv('MAIL_TO') ?: null; // Use admin email from .env -$subject = 'New FinMox Founding Access Application'; -$htmlBody = " -
A new application has been submitted for FinMox founding access:
-