Files
hostpioneers/submit-form.php
T
horus 1b56aed681 HostPioneers - AI Agent Hiring Platform
Features:
- AI Agent Hiring API (/api/hire)
- Agent Discovery (/api/agents.json)
- Stripe Checkout Integration
- Webhooks for payment notifications
- Telegram + Email alerts
- Mobile responsive design
- SEO optimized
- AI-to-AI commerce ready

Built: March 2026
2026-03-19 17:17:02 +01:00

20 lines
769 B
PHP

<?php
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$name = $_POST['name'] ?? '';
$email = $_POST['email'] ?? '';
$whatsapp = $_POST['whatsapp'] ?? '';
$message = $_POST['message'] ?? '';
$to = 'sales@hostpioneers.com';
$subject = "New inquiry from $name";
$body = "Name: $name\nEmail: $email\nWhatsApp: $whatsapp\n\nMessage:\n$message";
$headers = "From: noreply@hostpioneers.com\r\nReply-To: $email";
if (mail($to, $subject, $body, $headers)) {
echo '<script>alert("Thank you! We will get back to you soon."); window.location.href="/";</script>';
} else {
echo '<script>alert("Error sending message. Please email us directly at sales@hostpioneers.com"); window.location.href="/";</script>';
}
}
?>