PHP Sites Integration Guide

Complete guide to integrate MyFormCapture with PHP Sites

Setup time: 10-15 minutes
Difficulty: Intermediate
Compatible versions: PHP 7.0+

Integrate MyFormCapture with your custom PHP website to capture leads and provide instant callback requests. This guide covers multiple integration methods for PHP-based websites.

Prerequisites

  • A MyFormCapture account - Sign up here
  • Access to your PHP website files
  • Your MyFormCapture integration code (found in your dashboard)
  • Basic knowledge of PHP and HTML

Integration Methods

Header Include (Recommended)

5 minutes Easy

This method adds the MyFormCapture widget to all pages by including it in your site's header file.

1

Locate Header File

Find your main header file where you can add the MyFormCapture code.
  1. Locate your main header file (usually header.php or includes/header.php)
  2. Find the </head> tag
  3. Add your MyFormCapture integration code just before the closing </head> tag
  4. Save the file and test your website
Important Note
Always backup your files before making changes. This method affects all pages that use this header.
2

Add Integration Code

Insert the MyFormCapture code in the header file before the closing tag.
<!-- MyFormCapture Integration -->
<script>
(function() {
  var script = document.createElement('script');
  script.src = 'https://widget.callmebackbutton.com/widget.js';
  script.setAttribute('data-account', 'YOUR_ACCOUNT_ID');
  document.head.appendChild(script);
})();
</script>
</head>
Important Note
This method ensures the widget appears on all pages that use this header file.

Next Steps

Configure MyFormCapture

  • Set up your business hours and timezone
  • Configure callback phone numbers
  • Set up email notifications
  • Add team members to your account

Advanced Features

  • Set up custom form templates
  • Configure lead scoring rules
  • Integrate with your CRM
  • Set up automated workflows

Need Help?

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

Contact Support