Simple HTML Form Validation Using JQuery

The form allows you to check whether an input from the user is valid or not. This helps you ensure that the type of data inserted by the user is same as field expects to be.

In this tutorial, we will look on how to Validate an HTML Form with JQuery.

The form collects the user input and performs a simple check if the data matches the field type.If otherwise an error warning is displayed asking the user to input correct type of data.

Overview

In order to complete the task, we need to create following files. Bundle the files in the same directory. We will discuss the functions of each of the files in the later part of the guide.

  1. PHP
  2. Message-form.js
  3. PHP

(more…)

Easy Ajax Image Upload and view with JQuery, PHP

Today, we will look on how to upload an image with specific extensions into a server using AJAX and PHP. In this project, we will be using AJAX to show the user the uploaded image without refreshing the page. Also, we will be using extension validation using PHP in run time while uploading in order to prevent unknown file formats.

Overview

In order to build an image uploader, we will need to create the below-specified file with the specified code saved in it. Group all the files in the same folder.

  • Index.php
  • Ajaxhandling.php
  • Script.js
  • Jquery min library

(more…)

PHP Ajax Live Comment System

Looking to add a comment facility to your blog? If your answer is yes, You are at the right page.
In this tutorial, we will learn how to create a Comment system which will be loaded without page refresh. We will be using AJAX and PHP with MySQL to perform the task.

Overview

Moving ahead in the tutorial you will need to create edit and save the following files in the same directory. The functions of each of the page and their codes will be discussed subsequently.

  • dbConfig.php
  • index.php
  • post_comment.php
  • Style.css

(more…)

CRUD Operations Using PHP OOP and MySQL

In this tutorial, we will look into how to perform CRUD operations using PHP and MySQL, the Object Oriented way.
To perform this operation we will be creating a small form where users are given the ability to edit or delete the fields after adding(creating) an entry.

Overview

To continue with the tutorial you need to create and save the following files in the same directory.

  • Index.php
  • Crud_db.php
  • I_u_document.php
  • Style.css

(more…)

Dynamic Drop down Menu Using PHP and MySQL

In this tutorial, I will show you how to create a dynamic drop down list using PHP and MySql.

Users have the ability to add any number of Main menus as well as sub menu for each of them. All the data are pulled from the database as well as all the link which are embedded in the drop down menu is also pulled from the database itself.

Overview

To continue in this you will need to look into following files.

Copy the codes and save them in files with their respective name in the same folder.

  • Index.php
  • Add_menu.php
  • Style.css

(more…)