<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<htmlxmlns="http://www.w3.org/1999/xhtml"><head>
<title>用户注册</title>
<metahttp-equiv="Content-Type"content="text/html;charset=gb2312"/>
<linkhref="*"rel="stylesheet"type="text/css"/>
<linkhref="新建文本文档.txt"rel="stylesheet"type="text/css"/>
<styletype="text/css">
<!--
body{
background-color:#F6F6F6;
}
a:link{
text-decoration:none;
}
a:visited{
text-decoration:none;
}
a:hover{
text-decoration:none;
}
a:active{
text-decoration:none;
}
.STYLE1{font-family:"楷体"}
body,td,th{
font-family:楷体;
}
-->
</style></head>
<bodyclass="sub">
<divstyle="position:absolute;margin-left:70%;margin-top:4%;left:10px;top:76px;">

<p>有帐号?直接<ahref="e">登录</a></p>
</div>

<formmethod="post"name="form1"id="form1"onsubmit="returncheckform()">
<divclass="STYLE1"style="margin-top:10%;margin-left:20%;width:60%;background-color:#FFFFFF;color:#353535">
<tr>
<td></td>
</tr>

</table>
<tableborder="0"cellpadding="8">
<tr>
<tdheight="82"colspan="3"class="HeaderColor"><h4align="left">
欢迎注册
</h4>
<hr/>
<h4align="right"></h4></td>
</tr>
<trstyle="vertical-align:top">
<tdwidth="309"class="LabelColor"style="text-align:right">
<labelfor="username">*昵称</label></td>
<tdwidth="304"colspan="2"class="TitleColor">

<divalign="left">
<inputname="textfield"type="text"id="username"size="25"maxlength="20"style="color:#ccc"value="输入4-20个字母或数字"onfocus="this.value='',this.style.color='#000000'"/>
</div></td>
</tr>
<trstyle="vertical-align:top">
<tdwidth="309"class="LabelColor"style="text-align:right">
<labelfor="password">
<divalign="right">*密码</div>
</label></td>
<tdcolspan="2"class="TitleColor">

<divalign="left">
<inputname="textfield2"type="password"id="password"size="25"maxlength="16"style="color:#ccc"value="输入6-16位字母或数字"onfocus="this.value='',this.style.color='#000000'"/>
</div></td>
</tr>
<trstyle="vertical-align:top">
<tdwidth="309"height="32"class="LabelColor"style="text-align:right">
<labelfor="confirmpassword">
<divalign="right">*再次输入密码</div>
</label></td>
<tdcolspan="2"class="TitleColor">

<divalign="left">
<inputname="textfield22"type="password"id="textfield2"size="25"maxlength="16"style="color:#ccc"value="输入6-16位字母或数字"onfocus="this.value='',this.style.color='#000000'"/>
</div></tr>
<trstyle="vertical-align:top">
<tdstyle="text-align:right"class="LabelColor"><labelfor="confirmpassword">

<divalign="right">
<inputtype="radio"name="radiobutton"value="radiobutton"/>
</div>
</label></td>
<tdcolspan="2"class="TitleColor"><label>
<divalign="left">我已阅读<ahref="民大益易用户协议书.txt">《民大益易用户协议书》</a></div>
</label></td>
</tr>
<trstyle="vertical-align:top"class="FooterColor">
<tdcolspan="3">

<divalign="center">
<inputname="SubmitName"type="submit"value="立即注册"style="width:190px;margin-left:80%;height:40px;margin-top:auto;background-color:#FF3300"/>
</div></td>
</tr>
</table>
</div>
</form>
<scripttype="text/javascript">
functioncheckform(){
varusername=document.getElementById('username').value;
varpwd1=document.getElementById('password').value;
varpwd2=document.getElementById('textfield2').value;
if(username==''||pwd1==''||pwd2==''){
alert("请填写必填项");
returnfalse;
}
varreg=/^(\d|\w|\d\w){6,16}$/;
if(reg.test(username)==false){
alert("用户名格式不对");
returnfalse;
}
if(reg.test(pwd1)==false){
alert("密码格式不对");
returnfalse;
}
if(pwd1!=pwd2){
alert("两次密码不一致");
returnfalse;
}
}
</script>
</body>
</html>

7 个解决方案

#1


各位大神!怎么让我的页面有注册成功和注册失败账户名已被注册啊,数据库我能连接上,我不会写数据库返回数值那些代码啊。。。

更多相关文章

  1. php实现完整版验证码(数字+大小写字母+干扰素)
  2. 仅在我的文本框中验证数字和字母
  3. jsPDF中使用.text()方法的字母间距
  4. [python]如何将26个字母随意进行组合,返回值得位数为2-4位。
  5. sqlserver2008r2查找非中文字母数字出现的第一个位置
  6. 744.寻找比目标字母大的最小字母(Find Smallest Letter Greater
  7. Java区分大小写字母数字和符号
  8. java 正则表达式查找某段字符串中所有小写字母开头的单词并统计
  9. java 中判断一个字符串中大小写字母的个数及其思路

随机推荐

  1. Android清除通知栏的对应的消息
  2. Android/Bluetooth 初始化流程
  3. android远程adb调试(adb connect)失败时
  4. Android 动态发送广播接收
  5. 使用ListView应该注意的地方
  6. android中读取短信
  7. Android Third Party Libraries and SDK'
  8. 去掉非首次开机的优化过程都会有'Android
  9. Android LinearLayout Why Gravity Not W
  10. Android腾讯微薄客户端