Back to Home: PHP FormMail Generator I Need Help : Ask Question Without Registration

I don't want to use iframe. How can I embed the form directly?
  • admin October 2011
    The email form can be included by your own php file. Let's assume you have create a contact.php with your website header and footer. You can insert  the highlighted code to your php file :

    <?php require_once( dirname(__FILE__).'/form.lib.php' ); ?>
    <html>
    <head>
    </head>
    <body>

      <div id='header'>
      My site header
      </div>

      <div id="contactForm">
      <?php
      $GLOBALS['formOnly'] = true;
      include('form.php');
      ?>
      </div>

      <div id='footer'>
      My site fotter
      </div>

    </body>
    </html>

    Your contact form will has your own page design and my functional email form.