<form id="login" name="login" method="post" action="system/login.php">
<input type="image" name="submit" src="images/index_104.jpg"value="提交" class="inputNoBorder"/>........if($_POST["submit_x"]){........就是这句简单的。用鼠标点击图片能够提交 很正常。但是用回车的话 就跳到 system/login.php 白屏了。郁闷了。
<input type="image" name="submit" src="images/index_104.jpg"value="提交" class="inputNoBorder"/>........if($_POST["submit_x"]){........就是这句简单的。用鼠标点击图片能够提交 很正常。但是用回车的话 就跳到 system/login.php 白屏了。郁闷了。
改成
在form 里面加个 onsubmit 函数
没有点击就不能用这个做判断
.input{border:0px; background:url(http://www.antnic.com/images/logo.gif); width:205px; height:77px;}
</style>
<table width="500" border="0" cellspacing="0" cellpadding="0">
<form name="form1" method="post" action="system/login.php" target="_blank">
<tr>
<td><input type="text" name="abcde" id="abcde" value="输入内容"></td>
</tr>
<tr>
<td width="267"><input type="submit" name="button" id="button" value="" class="input"></td>
</tr>
</form>
</table>