CodeIgniter Form Submission using MySQL, jQuery and Ajax with custom Validation

In this tutorial, you will learn how to submit a form using MySQL, jQuery and Ajax with custom Validation. Here, I have created a responsive Bootstrap form which will take some inputs from you such as full name, Email, Contact No. and comment. You can view the live demo from the Demo link and can download the full live demo script from the Download.
Step 1: Create MySQL Database and Table
Step 2: Create a model file Site
Create a model file named Site.php” inside “application/models” folder.
Step 3: Create a Controller file Contact
Create a Controller file named “Contact.php” inside “application/controllers” folder.
Step 4: Create a view file index
Create a view file named “index.php” inside “application/views/contact” folder
Step 5: Create a file custom.js
Create a view file named “custom.js” inside “assets/js” folder
Step 7: Open file routes
Open “application/config/routes.php” file and add code like as bellow: