NZOHS Call Back System - PHP Version
Complete PHP implementation with server-side validation and email functionality
✅ Features Included:
- Complete PHP processing - Form submission handled server-side
- Comprehensive validation - Name format, email format, phone number validation
- Email functionality - Automatically sends formatted emails to your support address
- Error handling - User-friendly error messages with field highlighting
- Form persistence - Form data preserved on validation errors
- Security - Input sanitization and XSS protection
- Professional styling - Matches NZOHS business aesthetic
- Mobile responsive - Works on all devices
🔧 Setup Instructions:
- Save this file as
callback-popup.php on your web server
- Configure email settings at the top of the PHP file:
- Change
$to_email to your support email
- Change
$from_email to match your domain
- Test the form by clicking the "Request Call Back" button
- Check your email to confirm messages are being received
- Customize colors, text, or validation rules as needed
📧 Email Configuration:
The system uses PHP's built-in mail() function. For production use, you may want to:
- Configure your server's mail settings (sendmail, postfix, etc.)
- Use a mail service like PHPMailer with SMTP
- Integrate with services like SendGrid or Mailgun for better reliability
Click the "Request Call Back" button in the bottom right to test the popup! 🚀