把
<input type="submit" />
换成
<input type="button" />
使用按钮 onclick 触发 form 提交事件
document.getElementById("form1").submit()
记得给表格命名id
<form id="form1" name="form1" method="post" action="?">