web页面中图形按钮提交表单请教
小弟现在用图形按钮提交表单时总是不能成功,所以请问是怎么回事,请各位赐教:在下面的html代码中提交动作为何不能完成?怎么样确定是否单击了submit按钮?怎么样才能最好的把表单中的信息传给php脚本?谢谢了,
<form method="post" action="<?echo $PHP_SELF>">
<table><tr>
<td><input type=text name=username><input type=password name=pwd></td>
<TD COLSPAN=2><input type="image" name="submit"onclick="document.fromadd.submit()" SRC="images/yhtj_20.gif" WIDTH=64 HEIGHT=25 ALT="" border="0"></a></TD>
<TD>
<IMG SRC="images/yhtj_21.gif" WIDTH=7 HEIGHT=25 ALT=""></TD>
<TD>
<input type="image" name="reset" onclick="document.formadd.reset()" SRC="images/yhtj_22.gif" WIDTH=63 HEIGHT=25 ALT=""></TD></tr></table></form>