我有一个带有两个按钮的简单表单:
<form method="post">
<input type="text" name="name" id="name">
<button type="submit" formaction="?cmd=a1">action 1</button>
<button type="submit" formaction="?cmd=a2&sub=xxx">action 2</button>
</form>
如果我按第一个,则会显示error ERR_EMPTY_RESPONSE
(Chrome)或The connection was reset
(Firefox)。第二个作品。
因此,页面上所有在formaction
中具有单个参数的表单都停止工作。有人可以指出我正确的方向,在哪里看或有什么问题吗?