AJAX code
$.ajax({
type: "POST",
url: "/javascript/script.php",
data: {
"name": the_name,
"email": the_email
},
success: function(data) {
console.log(data)
var delay = 8000;
setTimeout(function() {
< ?php
include_once('javascript/db.php');
$email = $_POST['name'];
$password = $_POST['email'];
if(mysql_query("INSERT INTO `user`(`id`, `name`, `email`) VALUES ('$name', '$email')"))
echo "Successfully Inserted";
else
echo "Insertion Failed";
?>