I guess that when you submit the form you cause a page reload. When the page reloads, you submit the form and so on…
The best thing would be to catch the submit event, prevent the browser’s default action (submission, in this case), then do Ajax. Something like this (assumes jQuery):