点击图片img提交form表单

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Login</title>
<load src="__PUBLIC__/Js/Jquery.js"/>
<script>
function formSubmit(){
document.loginInfo.submit();
}
</script>
</head>
<body>
<form action="__URL__/do_login" method="post" name="loginInfo">
用户名 : <input type="text" name="username" /><br/>
密 码 : <input type="password" name="password" /><br/>
验证码 : <input type="text" name="verifyText" /><img src="__APP__/Public/verify"><br/>
<img src="__PUBLIC__/Images/login.gif" name="login" onclick="formSubmit();">
</form>
</body>
</html>

原文地址:https://www.cnblogs.com/houmin0036/p/4802300.html