$.ajax({ type: "post", async : false, url: "", data: { 'name1' : value, 'name2' : value2 }, contentType: "application/x-www-form-urlencoded; charset=UTF-8", success: function(result){ } });