With this script (made with PHP and Ajax) you can add in your web site a simple contact form. The visitors of your website will can contact you and send you messages directly from your page.
- It can be included in .php and .html files, or in template, with a simple HTML code (the server must run PHP).
- The form is HTML valid and has an anti-spam verification code.
- The form data is not resend if the page is refreshed.
- You can set the script to send the messages with the mail application from the server, or via GMail (in this case you must have a GMail account). For GMail the script usese the PHPMailer class.


• To Download the script, click this link: Download - simple contact form script (60 KB).

Demo Contact Form:

Send Message

Your Name:  
E-mail:        
Phone:        
Subject:  

Message: (maximum 500 characters)

Instructions

- Download the Archive with the Contact Form script from the Download link above, and follow the instructions from the readme.html file.

- If you have any questions or opinions about this script, please write on the Forum.

Daily Test with Code Example

HTML
CSS
JavaScript
PHP-MySQL
Which HTML5 tag can be used to embed an external application (SWF, PDF) in web page?
<mark> <embed> <canvas>
<embed src="flash_game.swf" width="450" height="350" />
Which CSS pseudo-element adds a special style to the first line of a text?
:first-letter :before :first-line
#id:first-line {
  font-weight: bold;
  color: blue;
}
Click on the window object property which gets or sets the URL of current page.
window.location window.self window.status
var url = window.location;
alert(url);
Indicate the PHP function used to get the contents of a file or page and store it into a string.
fopen() file_put_contents() file_get_contents()
$homepage = file_get_contents("http://coursesweb.net/");
echo $homepage;
Simple Ajax-PHP Contact Form Script

Last accessed pages

  1. The Stage, Panels and Tools in Flash (7108)
  2. querySelector and querySelectorAll (11852)
  3. Disable button and Enable it after specified time (8164)
  4. Vue Directives (7)
  5. PHP getElementById and getElementsByTagName (31491)

Popular pages this month

  1. Making DIV Contents Scroll Horizontally, with multiple Div`s inside (1348)
  2. Tabs effect with CSS (1315)
  3. Contact page - CoursesWeb (1314)
  4. Courses Web: PHP-MySQL JavaScript Node.js Ajax HTML CSS (890)
  5. Insert, Select and Update NULL value in MySQL (552)