Documentation is available in English.

PHP Sites Integration Guide

Complete guide to integrate MyFormCapture with PHP Sites

Setup time: 5 minutes
Difficulty: Easy
Compatible versions: All PHP versions

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)

5 minutes Easy

Add a MyFormCapture form directly to your PHP templates or views. Works with any PHP setup.

1

Copy your form UUID

Get your form UUID from MyFormCapture dashboard.
  1. Log in to your MyFormCapture dashboard
  2. Open the form you want to use
  3. Copy the form UUID (e.g. 550e8400-e29b-41d4-a716-446655440000)
2

Add form to PHP template

Insert the form HTML into your PHP file.
  1. Replace YOUR_FORM_UUID with your actual UUID
  2. Save the PHP file
  3. 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
This works with plain PHP, Laravel Blade, Symfony Twig, and any other PHP templating engine.
3

Laravel Blade example

For Laravel users, add to Blade templates.
{{-- 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
Use your existing CSS classes (like Bootstrap) for styling.
4

Test

Verify submissions reach MyFormCapture.
  1. Visit the page with the form
  2. Fill out and submit the form
  3. Check MyFormCapture dashboard under Leads

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

Need Help?

Our support team is here to help you with your integration.

Contact Support