You might need to change .submit to .click
$("#myform").submit(function() {
$.post("formprocessorforgot.php", $("#myform").serialize(),
function(data) {
$("#formResponse").html(data);
window.location = "thankyou.html";
}
);
return false;
});
Use a sendmail script. This will send all the data within the form “myform” to an email address specified in the mail script….