<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document"></head>
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function chk_null(pstr){
if (jtrim(pstr)!=""){
pout="false"
}else{
pout="true"
} return pout
}
function jtrim(str){
rvalue=str; rl=rvalue.length;
v_l=0;v_r=rl; for (i=0;i<rl;i++){
if (rvalue.charAt(i)!=" "){ v_l=i;i=rl;}
} for (i=(rl-1);i>=0;i--){
if (rvalue.charAt(i)!=" "){ v_r=i;i=0;}
}
rvalue=rvalue.substr(v_l,(v_r-v_l)+1)
if (rvalue.charAt(0)==" "){
rvalue=""
}
return rvalue}function chk_str(pstr){
pout="true"
strchar="'.~!@#$%^&*()_+?><,/{}][|\=-` "+'"'
for (o = 0; o < pstr.length; o++){
if(strchar.indexOf(pstr.charAt(o))!=-1){
pout="false"
o=pstr.length
}
}
return pout
}
function frm_s_onsubmit(){
cnt=0;
errstr="";
if(chk_null(frmsetup.txtname.value)=="true"){
cnt=cnt +1;
errstr=errstr+cnt+":"+"新用户名不能为空.\n"}
else{if(chk_str(frmsetup.txtname.value)=="false"){
cnt=cnt +1;
errstr=errstr+cnt+":"+"新用户名不能含有符号.\n"}}
if(chk_null(frmsetup.txtoldpwd.value)=="true"){
cnt=cnt +1;
errstr=errstr+cnt+":"+"登录密码不能为空.\n"}
else{if(chk_str(frmsetup.txtoldpwd.value)=="false"){
cnt=cnt +1;
errstr=errstr+cnt+":"+"登录密码不能含有符号.\n"}} if(chk_null(frmsetup.txtpwd.value)=="true"){
cnt=cnt +1;
errstr=errstr+cnt+":"+"新口令不能为空.\n"}
else{if(chk_str(frmsetup.txtpwd.value)=="false"){
cnt=cnt +1;
errstr=errstr+cnt+":"+"新口令不能含有符号.\n"}}
if(chk_null(frmsetup.txtpwdnext.value)=="true"){
cnt=cnt +1;
errstr=errstr+cnt+":"+"校验口令不能为空.\n"}
else{if(frmsetup.txtpwdnext.value!=frmsetup.txtpwd.value){
cnt=cnt +1;
errstr=errstr+cnt+":"+"两次输入口令不一致.\n"}}
if(cnt==0){
return true;
}
else{
window.alert(errstr);
return false;}
}
-->
</SCRIPT>
<body topmargin="0" background="../images/bg2.gif">
<br><br>
<font class=t2>
<font class=c1>
租赁业务管理系统
</font>
</font>
|
<font class=t2>
<font class=c2>
个人设置
</font>
</font>
<br><br>
<table border="0" width="100%" height="50" class=tb3 cellspacing="1" cellpadding="1" align="center" >
<form method="POST" action="setupok.asp" name="frmsetup" onsubmit="javascript:return(frm_s_onsubmit());">
<tr class=tb2>
<td width="2%" class=t1> </td>
<td width="20%" class=t1> 新用户名:</td>
<td width="70%" class=bgn6> <input type="text" name="txtname" size="20" class="f1"></input></td>
<td width="2%" class=t1> </td>
</tr>
<tr class=tb2>
<td width="2%" class=t1> </td>
<td width="20%" class=t1> 登录口令:</td>
<td width="70%" class=bgn6> <input type="password" name="txtoldpwd" size="20" class="f1"></input></td>
<td width="2%" class=t1> </td>
</tr>
<tr class=tb2>
<td width="2%" class=t1> </td>
<td width="20%" class=t1> 新 口 令:</td>
<td width="70%" class=bgn6> <input type="password" name="txtpwd" size="20" class="f1"></input></td>
<td width="2%" class=t1> </td>
</tr>
<tr class=tb2>
<td width="2%" class=t1> </td>
<td width="20%" class=t1> 确认口令:</td>
<td width="70%" class=bgn6> <input type="password" name="txtpwdnext" size="20" class="f1"></input></td>
<td width="2%" class=t1> </td>
</tr>
</table>
<div align="center">
<input type="submit" value="提交" name="B1"
class="f3"><input type="reset" value="重写" name="B2"
class="f3"><input type="Button" value="返回" name="btnCancel"
onclick="history.go(-1)" class=f3>
</div>
</form>
</body>
</html>
这是我编的类似你的程序。。你看看有什么不同的地方把。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货