我写的代码是这样的,不对,谁帮我改一下
<form name="form" method="post" action="register.php">
<table>
<tr>
<td width="21%" height="18">
<div align="left">注册代号:</div>
</td>
<td width="79%" height="18">
<input type="text" name="username">
</td>
</tr>
<tr bgcolor="#E6FFFF">
<td width="21%" height="18">
<div align="left">密码:</div>
</td>
<td width="79%" height="18" bgcolor="#E6FFFF">
<input type="password" name="password">
</td>
</tr>
<tr>
<td colspan="2">
<div align="center">
<input type=image src="images/queding.gif" name="submit" width="52" height="27" border="0">
<input type=image src="images/reset.gif" name="reset" width="62" height="26" border="0">
</div>
</td>
</tr>
</table>
</form>
<form name="form" method="post" action="register.php">
<table>
<tr>
<td width="21%" height="18">
<div align="left">注册代号:</div>
</td>
<td width="79%" height="18">
<input type="text" name="username">
</td>
</tr>
<tr bgcolor="#E6FFFF">
<td width="21%" height="18">
<div align="left">密码:</div>
</td>
<td width="79%" height="18" bgcolor="#E6FFFF">
<input type="password" name="password">
</td>
</tr>
<tr>
<td colspan="2">
<div align="center">
<input type=image src="images/queding.gif" name="submit" width="52" height="27" border="0">
<input type=image src="images/reset.gif" name="reset" width="62" height="26" border="0">
</div>
</td>
</tr>
</table>
</form>
而确定按钮设置为submit属性,并将form的target属性设置为_blank
<form .... target="_blank">
<form name="form" method="post" action="register.php" target="_blank">
..........<input type=submit style="background-image:url(images/queding.gif);" name="submit" width="52" height="27" border="0">
<input type=reset style="background-image:url(images/reset.gif);" name="reset" width="62" height="26" border="0">
............
<input type=submit style="background-image:url(images/queding.gif);height:40px;width:100px;" name="submit" width="52" height="27" border="0">
<input type=image src="images/queding.gif" name="submit" width="52" height="27" border="0">
<input type=image src="images/reset.gif" name="reset" width="62" height="26" border="0">
改成这样
<input type=image src="images/queding.gif" name="submit" width="52" height="27" border="0" onclick="javascript:document.form.submit();">
<input type=image src="images/reset.gif" name="reset" width="62" height="26" border="0" onclick="javascript:document.form.reset();">
看是不是你想要的效果