Php-mysql Course

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.
The script also works if the user has disabled JavaScript. As anti-spam and re-sending data additional protection, the PHP script blocks the user to send another email in the next 5 minutes.
Form fields are checked and validated with JavaScript.

You can download the script from this link -> Contact Form.

The contact form is like this:


Send a message






Verification code:
Add the verification code:

- 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.

Daily Test with Code Example

HTML
CSS
JavaScript
PHP-MySQL
Which tag is used in <table> to create table header cell?
<thead> <th> <td>
<table><tr>
  <th>Title 1</th>
  <th>Title 2</th>
</tr></table>
Which CSS property sets the distance between lines?
line-height word-spacing margin
.some_class {
  line-height: 150%;
}
Which function opens a new browser window.
alert() confirm() open()
document.getElementById("id_button").onclick = function(){
  window.open("http://coursesweb.net/");
}
Indicate the PHP function that returns an array with names of the files and folders inside a directory.
mkdir() scandir() readdir()
$ar_dir = scandir("dir_name");
var_export($ar_dir);
Contact Form, PHP - AJAX

Last accessed pages

  1. Laravel - Validation (845)
  2. Vue JS - Transition and Animation (495)
  3. Disable button and Enable it after specified time (17562)
  4. PHP Method Chaining (5464)
  5. Courses Web: PHP-MySQL JavaScript Node.js Ajax HTML CSS (142541)

Popular pages this month

  1. Courses Web: PHP-MySQL JavaScript Node.js Ajax HTML CSS (544)
  2. The Mastery of Love (65)
  3. CSS cursor property - Custom Cursors (63)
  4. Read Excel file data in PHP - PhpExcelReader (59)
  5. PHP-MySQL free course, online tutorials PHP MySQL code (44)