這裏提交的是我的代碼:形式正在對點擊圖像
<form action="telecallerinfo.php?action=modify&id=<?php echo $id;?>" method="post" enctype="multipart/form-data">
<table class="panel1">
<tr>
<td>Caller Name: <input name="tele_caller" type="text" size="15" value="<?php echo $tele_caller?>" /></td>
</tr>
<tr>
<td align="right">
<input name="submit" id="submit" type="image" src="images/submit.gif" width="60" onclick="this.form.submit();"/>
<input name="cancel" id="cancel" type="image" src="images/cancel.gif" width="60" onclick="window.location.href='telecallerinfo.php';"/>
</td>
</tr>
</table>
</form>
但後來我點擊取消圖像上。表格正在提交。如何阻止它,因爲我只想刷新頁面。有沒有給圖像賦予復位功能的方法?
不工作.... – champ 2010-09-27 08:37:50
可能是您的瀏覽器忽略「alt」。 – Rupeshit 2010-09-27 08:51:47
嘗試這一個:
<形式行動= 「example.cgi」 方法= 「POST」>– Rupeshit 2010-09-27 08:52:11