Browse Topics In
Knowledge Base
|
|
Search for Answers |
|
Intelligent FAQ Search. Type in your keywords to search for the answers you need. |
|
Back
|
Contact Form > Installation |
Showing 2 of 2 |
Prev |
How do I integrate the Contact Form to my web page?
Modified on 2004-12-01
|
- One of our product uniqueness is we made our scripts capable to fit into your existing web design.
- First, create a web page where you would like to place your online form. Save the web page file with .php extension, such as contactus.php.
You can put the file into web root directory or any directory of your choice on the server.
- To ensure the Contact Form works regardless the location of your web page, you will need to add your 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 that the Document Path is '/home/sitename/public_html/oneadmin/'
- Now, open the web page file (contactus.php) with your text editor.
- In the body content section, insert the following line to display your Contact Form (calling the contactform/home.contact.php file).
<?
include_once("/home/sitename/public_html/oneadmin/config.php");
include("/home/sitename/public_html/oneadmin/contactform/home.contact.php");
?>
- Save your web page file.
- Navigate to your web page, eg: http://your-domain-name/contactus.php to view the Contact Form publish result.
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, you may open the /oneadmin/samplecontactform.php file with your text editor. Browsing to the sample web page, for said http://your-domain-name/oneadmin/samplecontact.php enables you to preview your contact form in real time.
Note: Substitute the path in green to your Document Path (the complete path to your /oneadmin directory)
|
|
|
|