Insert Form in php Page using php Include
Click on "Create php Web Form" after you have finished editing the form.
Add e.g. <?php include ("webform.php"); ?> to your php page to include the form.
The charset of the php host page must be set to utf-8!
to check if the charset of your php host page is set to utf-8
<?php include ("webform.php"); ?>
<?php include ("subfolder/webform.php"); ?>
<?php include ("../includes/webform.php"); ?>
Important: Don't use an absolute URL (starting with http:// or https://) - always use a include path relative to your php host page.
If you are using a Content Management System (CMS) like e.g. Wordpress, Typo3 or Joomla, then you need to install an extension, which allows to include custom php code first.
Please refer to the documenation of the extension for the correct syntax - a simple "php include might" not work!
- The web form is built using hp and HTML. php is a common scripting language
and should be available on most web servers. Please enable php or contact
your web provider if php is not enabled.
- If you are testing the form after you have uploaded it to your web and
you always get the error page, then either php mail is not enabled or there
is no default email address setup in the php config.
- The wizard creates a new blank form using the required settings. There
are more settings available in the "Form Properties".
- You can upload the include file to the same directory as the php host page or a sub-directory f your web space.
If you have a Captcha in your form and the captcha image shows a broken image,
then you should specify the "Captcha Self-Referential URL".
See also: Captcha Self-Referential URL