ajax ile post edilecek formlara id atayın ve bu id değerini formun submit butonuna data olarak ekleyin daha sonra İki tane function oluşturun birisi post function olsun diğeride click function, click functionda tıklanan submit butonundan formun id sini alıp post functiona gönderin orada ajax ile post edilmesini sağlarsınız:

Örnek, test etmedim ama muhtemelen çalışır, mantık bu şekilde







<script>

$(".ajaxpost").click(function(){

var form = $(this).attr("data");
post(form);

});


function post(x){
$.ajax({
type:"post",
url :"post_url.php",
data:x.serialize(),
error:alert(),
success:function(response){
console.log(response);
}
})
}

</script>