You might need to change .submit to .click
1 2 3 4 5 6 7 8 9 10 11 |
$("#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….