username = Request.Form("u_name")If Len(username)<6 Or Len(username)>10 Then Response.Write("<script>alert('要求用户名在6--10个字符之间');history.go(-1)</script>") Response.End()End If