$.ajax({ type: "POST", url: "upload.php", data: { name:name, mobile:mobile, address:address, city:city }, dataType: "json", success: function(result){ } });