$.post("includes/acciones.php", {accion:"tmac", campo1:variable1, campo2:variable2, campo3:variable3, campo4:variable4}, function(exito){ $("#inputs").html(exito); });