按钮图像作为表单输入提交按钮? [英] button image as form input submit button?
本文介绍了按钮图像作为表单输入提交按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<form method="post" action="confirm_login_credentials.php">
<table>
<tr>
<td>User ID:</td>
<td><input type="text" id="uid"></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="text" id="pass"></td>
</tr>
<tr>
<td colspan="2" align="right">
<a href="#"><img src="images/login.jpg"></a>
</td>
</tr>
</table>
</form>
我使用图片代替提交按钮。如何在用户点击登录图像时提交登录详细信息作为提交按钮?
I am using an image in place of a submit button. How can I submit the login details when the user clicks on the login image as a submit button does?
推荐答案
您可以使用图片提交按钮:
<input type="image" src="images/login.jpg" alt="Submit Form" />
这篇关于按钮图像作为表单输入提交按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文