Contact Form, PHP - AJAX
With the script presented in this page (created with PHP and AJAX) you can add a Contact Form in your website, through which the visitors can send messages to the administrator e-mail address directly from site.
The received email contains: the Name and IP of the sender, his /her E-mail address, the Subject, and Message added in textarea in the form.
The Contact Form can be added in both "*.html" or "*.php" files, but the web server must run PHP.
- The form is valid XHTML and has antispam verification code. The Ajax technology avoids resending data in case of refresh.
You can download the script from this link -> .
The contact form is like this:
- The script has included the PHPMailer class, so you can choose to send the email with the PHP mail() function, or via a GMail account.
Details about how to install and use this Contact Form script are in "Read.html" file (in the archive you can Download from the link above).
- For those interested to learn PHP and Ajax, there are helpful explanations in comments in code.
This script is free (does not provide support or personal modifications).
It was successfully tested with a general configuration on localhost with XAMPP. If on other systems does not work properly, depends on their configuration.