急,html中登陆页面总是在地址栏显示用户的口令和用户名 改成get不是办法,为什么收不到参数才是问题所在?为什么?是doGet()与doPost()方法的问题?帖点代码瞧瞧。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 可以该成post,然后用request.getParameter("asdfasd");就能接受到了,我现在用的jsp就是这样做的。, 改成post不行;很奇怪另外一台机器确实好的<SCRIPT LANGUAGE="JavaScript1.1">function checkNull(form){ if(form.userid.value==""){ alert("²Ù×÷Ô±ºÅ²»¿ÉÒÔΪ¿Õ!"); return false; } if(form.password.value==""){ alert("ÃÜÂë²»¿ÉÒÔΪ¿Õ!"); return false; } return true;}function login(){ if(!checkNull(form1)) return false; form1.submit();}</SCRIPT> <form name="form1" action="/JBank/main/login" > <table align=center border=0> <tr> <td width=150> <img src="./image/bt-czyh.gif"> <input type="text" size=4 maxlength=4 name="userid"> </td> <td> <img src="./image/bt-mm.gif"> <input type="password" size=6 maxlength=6 name="password"> <input type="hidden" name="jgbm" value="110000"> </td> </tr> <tr height=10></tr> <tr> <td colspan=2 align=center><input type="button" class="button" value="登陆" onclick="login()">     <input type="reset" class="button "value="重置"> </td> </tr> </table></form> api的使用方法 请熟悉http协议 或 编过QQ相关程序的达人帮忙看看 【请教】如何用java实现反三角函数计算? j2me多线程,如何判断当前线程 谁在开发中使用过比较复杂的TableCellRenderer? java小小小小,小问题 如何用JUnit测试add方法 system.out.println 的问题 jbuilder问题 vb程序与内存之间有没有什么关系,假设不同的内存运行VB程序时是否会有冲突。 msn的邮件怎样设置smtp和pop3阿? 急!初学者问题,请指教
然后用request.getParameter("asdfasd");
就能接受到了,我现在用的jsp就是这样做的。,
function checkNull(form){
if(form.userid.value==""){
alert("²Ù×÷Ô±ºÅ²»¿ÉÒÔΪ¿Õ!");
return false;
}
if(form.password.value==""){
alert("ÃÜÂë²»¿ÉÒÔΪ¿Õ!");
return false;
}
return true;
}function login(){
if(!checkNull(form1))
return false;
form1.submit();
}
</SCRIPT> <form name="form1" action="/JBank/main/login" >
<table align=center border=0>
<tr>
<td width=150>
<img src="./image/bt-czyh.gif">
<input type="text" size=4 maxlength=4 name="userid">
</td>
<td>
<img src="./image/bt-mm.gif">
<input type="password" size=6 maxlength=6 name="password">
<input type="hidden" name="jgbm" value="110000">
</td>
</tr>
<tr height=10></tr>
<tr>
<td colspan=2 align=center>
<input type="button" class="button" value="登陆" onclick="login()">    
<input type="reset" class="button "value="重置">
</td>
</tr>
</table>
</form>