function go() { fetch("/tao_baogia_tu_pyc", { method: "POST", body: new FormData(/*...*/) }) .then(res => res.json()) .then(data => { document.getElementById("status").innerText = data.message || "Xong!"; }) .catch(err => { document.getElementById("status").innerText = "Lỗi"; }); }