[Solved] submit a form with php and provide response to user with ajax
[ad_1] I am not sure what you need exactly but I see the “data:” is empty, you can use serialize to post all input data in your form to your php, like this: here is a test form: <form id=”createaccount”> <input type=”text” name=”a” id=”a”> <input type=”submit” value=”Submit”> </form> here is your javascript part: $(“#createaccount”).submit(function(){ $.ajax({ … Read more