当点击一个图片时,提交表单,什么写法 <img src="images/login.gif" width="40" height="20" onclick="document.fom1.Submit()"> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 onclick="fom1.submit()" //小写s <input type="image" border="0" name="sc" src="images/login.gif" width="40" height="20"> <script language="Javascript">thank you!但是我还是有个问题那就是为什么我点击提交后不执行下面的程序呢???function vv(){ if( document.form1.name.value=="")|| (document.form1.passwrod.value=="") { alert("请输入关键字"); return false; } return true; }</script> <form name="form1" onsubmit="return vv(this)" method="post" action="login.asp"> <br> <p align="center"><font color="#000000">登陆名:</font> <input name="name" type="text" id="name" size="15"> <br> <font color="#000000">密 码:</font> <input name="password" type="password" id="pw" size="15"> </p> <p align="center"> <font style="cursor:hand"><img src="images/login.gif" width="40" height="20" onclick="document.form1.submit()"></font> <font style="cursor:hand"><a href="REGIST.HTM"><img src="images/reg.gif" width="40" height="20" border="0"></a></font></p> </form> <form name="form1" method="post"><input src="images/login.gif" width="42" height="22" type="image"></form> 上面还差一点。。<form name="form1" method="post" action="" ><input src="images/login.gif" width="42" height="22" type="image"></form> 再加个函数:function WritePK(){ }试试 JDBC有BUG? 为何用“桥连接”时,经常会连接占线?而用直连的时候又从来不会? 拜求jdk1.5或者1.6 struts多模块的配置问题... jsp页面怎么访问serlvet中自定义的方法? 关于MS sql server jdbc 互连的问题 希望版主回答,在线等!!!! 关于lucene的中文检索问题 JSP很常见问题? 关于jvm设置问题。 怎么防止脚本? 怎样在JSP中实现从一个XML文件中读取所有元素?以树型显示 网上有没有学习JSP较全面的资料?找了半天没找到...
thank you!
但是我还是有个问题那就是为什么我点击提交后不执行下面的程序呢???
function vv()
{
if( document.form1.name.value=="")|| (document.form1.passwrod.value=="")
{
alert("请输入关键字");
return false;
}
return true;
}
</script> <form name="form1" onsubmit="return vv(this)" method="post" action="login.asp">
<br>
<p align="center"><font color="#000000">登陆名:</font>
<input name="name" type="text" id="name" size="15">
<br>
<font color="#000000">密 码:</font>
<input name="password" type="password" id="pw" size="15">
</p>
<p align="center"> <font style="cursor:hand"><img src="images/login.gif" width="40" height="20" onclick="document.form1.submit()"></font> <font style="cursor:hand"><a href="REGIST.HTM"><img src="images/reg.gif" width="40" height="20" border="0"></a></font></p>
</form>
<input src="images/login.gif" width="42" height="22" type="image">
</form>
<form name="form1" method="post" action="" >
<input src="images/login.gif" width="42" height="22" type="image">
</form>
function WritePK(){
}
试试