I am stuck in my code, I need to send data from the form to the check.php page and then process it.
This is my code:
The AJAX part:
Try this
$(document).ready(function(){ var form=$("#myForm"); $("#smt").click(function(){ $.ajax({ type:"POST", url:form.attr("action"), data:$("#myForm input").serialize(),//only input success: function(response){ console.log(response); } }); }); });