AJAX contact form with auto responder - Documentation

About AJAX contact form

This nice looking contact form has the following features.

Installation

Installation of this contact form is pretty simple.

If you like to use this contact form as popup contact form

If you like to use this contact form as popup contact form:-

Add the following line of code at the top of the "contact-us.html" page. This code actually prevent direct opening of your contact page.
Code | Download
<script type="text/javascript">
<!-- 
if(null==(parent.opener)){window.location.href="http://yourdomain/yourpage";}
-->
</script>

Here http://yourdomain/yourpage is the URL of the webpage where you want to redirect viewers incase of direct opening of contact page.

Add the following line of code at the pages from where you want to open the contact page. This code will appear as a clickable link on your web page.

Code | Download
<script type="text/javascript">
function contact(){
var x=window.open('http://yourdomain/contact-us.html', 'ContactUs', 'width=500, height=550, toolbar=no,location=no, directories=no, status=yes, enubar=no, scrollbars=yes, copyhistory=yes');
if(!x){alert("Please allow popup to open contact page!");}
return false;}
<a href="#" onclick="return contact()">Contact us</a>

Here again http://yourdomain/contact-us.html is the URL of the contact page.

Read mail

All emails will be delivered to the email address you provide during installation. So you can read them by logging-in at your email account.

How to add contact form to your existing web page**

If you like to add/insert this "contact form" into your existing web page:-

1. Open file "contact.html" with your favorite text or HTML editor.
2. Copy the codes between <body> and </body> tags.
3. Past it at the desired position of your existing page.
4. Put the following lines of code between <head> and </head> tags.
Code | Download
<script type="text/javascript" src="mail/script/mail.js"></script>
<script type="text/javascript" src="mail/script/common.js"></script>
<style type="text/css">
body, div, td, input{font-family: arial;font-size:12px;}
.text{height:17px; border:1px solid #999999; width:100px;}
.text:hover{background:#fdfdd3;}
a{color:#999999;}
a:hover{color:#6699aa;}
</style>

__________________
** Existing page may be in PHP or HTML or HTM format.

Maximum message length

To restrict user from any misuse or doing any evil activity maximum message length is limited to three thousand (3000) characters. You can edit this value according to your requirement. Open file "/mail/script/mail.js" with your favorite text/html editor. At line-41 find the string
if(validateForm(3000)){
Only change the red color text.

Server Requirements:

PHP 5.0 or higher with GD installed are required to run the script.
If your system doesn't meet these requirements please write here for necessary modifications.

Copyright:

This product is protected by copyright and distributed under licenses restricting copying, distribution. Permission is granted to the public to download and use this script provided that this Notice and any statement of authorship are reproduced in every page on all copies of the script.

DISCLAIMER OF WARRANTIES:

THIS SCRIPT PRODUCT IS PROVIDED "AS-IS". NO WARRANTY OF ANY KIND IS EXPRESSED OR IMPLIED. YOU (RECIPIENT) USE THIS SCRIPT AT YOUR (RECIPIENTS) OWN RISK. TO THE MAXIMUM EXTENT PERMITTED UNDER APPLICABLE LAWS, AUTHOR EXPRESSLY DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. AUTHOR DOES NOT WARRANT THAT THE FUNCTIONS CONTAINED IN THE SCRIPT WILL MEET YOUR REQUIREMENTS, OR THAT THE OPERATION OF THE SCRIPT WILL BE UNINTERRUPTED OR ERROR-FREE, OR THAT DEFECTS IN THE SCRIPT WILL BE CORRECTED. FURTHERMORE, AUTHOR DOES NOT WARRANT OR MAKE ANY REPRESENTATIONS REGARDING THE USE OR THE RESULTS OF THE USE OF THE SCRIPT IN TERMS OF ITS CORRECTNESS, ACCURACY, RELIABILITY, OR OTHERWISE. NO ORAL OR WRITTEN INFORMATION OR ADVICE GIVEN BY AUTHOR OR RAMUI.COM SHALL CREATE A WARRANTY OR IN ANY WAY INCREASE THE SCOPE OF ANY WARRANTY.