-Insert data in Database Using Jquery -Create a index.php and code.php file with code -database name ‘school’ -tabale Name ‘class’ -thene Working it code File Name :- index.php

  //Install Jquery

alert("Enter first name");
return false;
} else
var fname = $('#fname').val();
alert("Enter Password");
return false;
var password = $('#passwd').val();
jQuery.post("code.php", {
pass: password
},  function(data, textStatus){
if(data == 1){
$('#response').html("Registration successfull!!");
$('#response').html("Some Error Occurred");

Create Filename :- code.php

echo "1";
echo "2";

About Author:

Kalpesh Chavada

Kalpesh Chavada is Our Founder & CEO of Akshar Group Technologies. He is serving with 11+ years of experience in different technologies like Magento, WordPress, Laravel, jQuery, Shopify, Branding, and Digital Marketing. He is very good with creative logic and always ready to take on challenges.

Kalpesh Author