<p>会员管理系统<br />
.main{width: 80%;margin: 0 auto;text-align: center;}<br />
.main ul{width: 90%;margin: 0 auto;text-align: center;}<br />
h2{text-align: center;font-size: 16px;}<br />
h2 a{margin-right: 15px;color: navy;text-decoration: none;}<br />
h2 a:hover {color: crimson;text-decoration: underline;}<br />
.current {color: darkgreen;}<br />
.red{<br />
color: red;<br />
}<br />
会员注册管理系统<br />
<a href=”index.php” rel=”nofollow ugc”>首页</a><br />
<a href=”singup.php” rel=”nofollow ugc”>会员注册</a><br />
<a href=”login.php” rel=”nofollow ugc”>会员登录</a><br />
<a href=”member.php” rel=”nofollow ugc”>个人资料修改</a><br />
<a href=”admin.php” rel=”nofollow ugc”>后台管理</a><br />
用户名<br />
*<br />
密码<br />
*<br />
function check(){<br />
let username = document.getElementsByName(‘username’)[0].value.trim();<br />
let pw = document.getElementsByName(‘pw’)[0].value.trim();<br />
let usernameReg = /^[a-zA-Z0-9]{3,10}$/;<br />
let(!usernameReg.test(username)){<br />
alert(‘用户名必填,且只能大小写字符和数字构成,长度为3-10个字符!’);<br />
return false;<br />
}<br />
let pwreg = /^[a-zA-Z0-9_*]{6,10}$/;<br />
if(!pwreg.test(pw)){<br />
alert(‘密码必填,且只能大小写字符和数字,以及*、_构成,长度为6-10个字符!’);<br />
return false;<br />
}<br />
return true;<br />
}</p>