what is wrong with my code? He doesn't do the alert 'PHPPPPP' Only the success one
Html: Add to Log
<script>
function create () {
$.ajax({
url:"log.php", //the page containing php script
type: "post", //request type,
data: {hour: "1", min: "2", email: "3"},
success:function(result){
alert("passed");
}, error: function(data) {
alert(data);
}
});
}
</script>
Php(log.php):
echo "<script> alert('PHPPPPPPPPPP') </script> " ;