Php-mysql Course

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 HTML element can be used to embed a SWF flash content?
<object> <div> <script>
<object type="application/x-shockwave-flash" data="file.swf" width="500" height="250">
 <param name="src" value="file.swf" />
 Your browser not support SWF.
</object>
Which CSS pseudo-class adds a style to an input form field that has keyboard input focus?
:active :focus :hover
input:focus {
  background-color: #88fe88;
}
Click on the instruction which converts a JSON string into a JavaScript object.
JSON.stringify(javascript_object) object.toString() JSON.parse(json_string)
var jsnstr = '{"url": "http://coursesweb.net/", "title": "Web Development Courses"}';
var obj = JSON.parse(jsnstr);
alert(obj.url);
Indicate the PHP function which can be used to create or write a file on server.
fopen() file_put_contents() file_get_contents()
if (file_put_contents("file.txt", "content")) echo "The file was created";
else echo "The file can not be created";
Simple Ajax-PHP Contact Form Script

Last accessed pages

  1. JavaScript Course - Free lessons (31647)
  2. Volume and Surface Area Calculator for 3D objects (11276)
  3. Using v-model in form input fields (1051)
  4. jQuery UI draggable - Drag elements (11445)
  5. Display data from PHP Array, or MySQL in HTML table (26980)

Popular pages this month

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