我在一个页面中有以下片段。我无法弄清楚为什么单击button1元素时表单没有提交。在IE中,我会收到错误提示,指出该对象不支持此属性或方法。我将document.poform放入一个警报中,它会警报一个表单对象。我感觉可能是我漏掉了一些非常明显的东西?
<pre>
<?
var_dump($_POST);
?>
</pre>
<form action="" method="post" name="poform">
<input name="test" type="text" />
<input name="button" type="button" value="button1" onclick="document.poform.submit();" />
<input name="submit" type="submit" value="button2" />
</form>