Comdev - PHP Scripts For Your Website
Fast Website Development with PHP Components





Back To List Form Designer > Installation Showing 2 Of 2 Prev

Integrating Form Designer To Your Web Page


Modified on 2006-07-05

Step 1 : Create new PHP page

Create a web page where you would like to publish your online form. Save the web page file with .php extension, say, for example enquiry.php.

* Note: You can put the file into web root directory or any directory on the server.


Step 2 : Find the Document Path

To ensure that your designed forms works regardless of the location of your web page, you will need to add your server's Document Path to all the PHP include codes.

To find the Document Path, open the /oneadmin/config.php file with your text editor, and note this path down. Let's assume the Document Path is /home/sitename/public_html/oneadmin/.


Step 3 : Insert Document Path and include codes

Now, open the enquiry.php with your text editor. In the body content area, put the following code to display your online form.

<?php
      include_once("/home/sitename/public_html/oneadmin/config.php"); $form_id=[ID];
      include("/home/sitename/public_html/oneadmin/formdesign/home.form.php");
?>

* Note: [ID] is the Form ID that you need to pass in, to indicate which form you are calling to. To get the ID, you can login to your One Admin > Manage Forms and click on 'Inclusion Code'.

With Form Designer, you will be able to create multiple forms on your web site. For each web page file, put the Form ID that is associated to the form you wish to publish, into the include codes.


Step 4 : View integration result

Now, proceed to your web page URL, eg: to view the integration result.

To preview your sample online form in real time, click on the 'front-end' link on the top right menu from within the One Admin panel.

We recommend that you place your codes on a hidden web page to test before placing them on a public page.

If you need more references on code plug-in guidelines, just open the /oneadmin/formdesign/sampleformdesign.php file with your text editor.

* Note: Substitute the path in green to your Document Path (the complete path to your /oneadmin directory).





Printer Friendly Version
Tell A Friend

Related FAQs In This Category

Integrating Form Designer To Your Web Page

Installing Form Designer 4.0