PHP Sites Integration Guide
Complete guide to integrate MyFormCapture with PHP Sites
Add MyFormCapture forms to any PHP website or framework (Laravel, Symfony, CodeIgniter, CakePHP, etc.). Works with custom PHP applications and popular frameworks.
Prerequisites
- A MyFormCapture account - Sign up here
- A form created in your MyFormCapture dashboard with its UUID copied
- Access to PHP files on your server
- Basic PHP and HTML knowledge
Integration Methods
HTML Form (Recommended)
Add a MyFormCapture form directly to your PHP templates or views. Works with any PHP setup.
Copy your form UUID
- Log in to your MyFormCapture dashboard
- Open the form you want to use
- Copy the form UUID (e.g.
550e8400-e29b-41d4-a716-446655440000)
Add form to PHP template
- Replace
YOUR_FORM_UUIDwith your actual UUID - Save the PHP file
- Upload to your server if needed
<!-- In your PHP template (e.g., contact.php, view.php) -->
<div class="contact-form">
<h2>Contact Us</h2>
<form action="https://myformcapture.com/f/YOUR_FORM_UUID" method="POST" data-mfc="true">
<div style="margin-bottom: 15px;">
<label for="name">Name *</label><br>
<input type="text" id="name" name="name" required style="width: 100%; padding: 8px; border: 1px solid #ccc;">
</div>
<div style="margin-bottom: 15px;">
<label for="email">Email *</label><br>
<input type="email" id="email" name="email" required style="width: 100%; padding: 8px; border: 1px solid #ccc;">
</div>
<div style="margin-bottom: 15px;">
<label for="message">Message</label><br>
<textarea id="message" name="message" rows="4" style="width: 100%; padding: 8px; border: 1px solid #ccc;"></textarea>
</div>
<button type="submit" style="padding: 10px 20px; background: #777bb4; color: white; border: none; cursor: pointer;">Send Message</button>
</form>
<script src="https://myformcapture.com/loader.js" data-client-id="YOUR_FORM_UUID"></script>
</div>
Important Note
Laravel Blade example
{{-- resources/views/contact.blade.php --}}
@extends('layouts.app')
@section('content')
<div class="container">
<h2>Contact Us</h2>
<form action="https://myformcapture.com/f/YOUR_FORM_UUID" method="POST" data-mfc="true">
<div class="form-group">
<label for="name">Name *</label>
<input type="text" id="name" name="name" class="form-control" required>
</div>
<div class="form-group">
<label for="email">Email *</label>
<input type="email" id="email" name="email" class="form-control" required>
</div>
<div class="form-group">
<label for="message">Message</label>
<textarea id="message" name="message" class="form-control" rows="4"></textarea>
</div>
<button type="submit" class="btn btn-primary">Send Message</button>
</form>
<script src="https://myformcapture.com/loader.js" data-client-id="YOUR_FORM_UUID"></script>
</div>
@endsection
Important Note
Test
- Visit the page with the form
- Fill out and submit the form
- Check MyFormCapture dashboard under Leads
Related Integrations
References & Official Documentation
Next Steps
Configure MyFormCapture
- Set up your timezone
- Configure lead notifications
- Set up advanced spam detection
- Add team members to your account
Advanced Features
- Use our custom form templates
- Try AI Insights for Leads
- Integrate with your CRM
- Set up automated workflows