html登录界面代码

html登录注册页面代码 新用户注册html代码html登录注册页面代码 新用户注册html代码


html登录注册页面代码 新用户注册html代码


html登录注册页面代码 新用户注册html代码


登录界面

登录界面:

请输入你的用户名:


输入你的地址:


填上密码:


选择你的性别:


选择你的爱好:

游泳

旅游

上网


用html代码编写一个简单的登陆界面

框架

login

登录界面
user:
pwd:

登陆页面

Insert title here

登陆界面
账号:
密码:

这个用HTML代码写那个登录界面是非常简单的一件事情。你只要下一个三剑客就可以了

html登陆界面代码

实现这个功能要两个网页,一个是前台静态网页,用两个文本框分别为t1,t2,一个按钮active后面写上你要跳转的后台网页的名称如"houtai.asp"

以下是houtai.asp的代码

<%

dim

a,b

a=request.from("t1")

b=request.from("t2")

if

a<>admin

then

response.write

"用户名错误"

else

if

b<> 123456

then

response.write

"密码错误"

else

response.redirect

"你要转到的主页.asp"

end

if

end

if

%>

1.html中的action="2.html"就可以跳转到2.html了

注册页面html中的登录按钮代码

注册/登陆页面HTML代码该怎么写?

以下为个人原创教学例子,任何人引用需注明出自百度知道用户am7972,楼主可供参考x0dx0a该例子涵盖了文本框、密码框、下拉菜单、单选框、复选框及文本区的使用x0dx0a同时在数据的使用方面涵盖了文本型、数值型、日期型、布尔型的使用x0dx0a也涵盖了在会员信息入数据库前,进行严格的数据检查x0dx0a不足处,JS验证还不是太完善,不过有服务端认证足够了x0dx0a会员注册x0dx0ax0dx0a 10)x0dx0a {x0dx0a alert("输入的姓名长度多为10个字符!");x0dx0a document.user.username.focus();x0dx0a return false; x0dx0a} x0dx0a}x0dx0a//-->x0dx0ax0dx0ax0dx0ax0dx0ax0dx0a 会员注员 x0dx0a 姓名: x0dx0a 密码: x0dx0a 性别: 男 女 x0dx0a 生日: x0dx0a 年龄: x0dx0a 爱好: 上网 读书 体育 x0dx0a 上网方式: x0dx0a 拨号上网 上网 光纤上网 x0dx0a x0dx0a 个人: x0dx0ax0dx0ax0dx0ax0dx0a====bb.asp的会员注册非法数据监测====x0dx0a10 Thenx0dx0a Response.write "姓名字数不能超过10个字" 'Len("Z")=1 Len("国")=2x0dx0a Response.Endx0dx0aEnd Ifx0dx0aFor i = 1 To Len(username)x0dx0a q = Mid(username,i,1) x0dx0a If InStr("!@#$%^&()_-+|?/"",.",q)>0 Thenx0dx0a Response.write "姓名不能包含特殊符号!@#$%^&()_-+|?/"",." x0dx0a Response.End x0dx0a End Ifx0dx0aNextx0dx0a'判断密码合不合法,是否包含非法数据userPassword = Trim(userPassword)If userPassword ="" Then Response.write "密码不能为空" Response.EndEnd Ifx0dx0aIf Len(userPassword)>20 Thenx0dx0a Response.write "密码字数不能超过20个字" x0dx0a Response.Endx0dx0aEnd Ifx0dx0a'判断密码合不合法,是否包含非法数据x0dx0aSex = Trim(Sex)x0dx0aIf Sex = "" Thenx0dx0a Response.write "性别不能为空"x0dx0a Response.Endx0dx0aEnd Ifx0dx0aIf Sex "True" And Sex "False" Thenx0dx0a Response.write "性别不能为"x0dx0a Response.Endx0dx0aEnd Ifx0dx0a'判断生日合不合法,是否包含非法数据x0dx0auserSR = Trim(userSR)x0dx0aIf userSR ="" Thenx0dx0a Response.write "生日不能为空"x0dx0a Response.Endx0dx0aEnd Ifx0dx0aIf Len(userSR)10 Then '例如:2012-6-3 2012-11-23x0dx0a Response.write "你输入的生日字数不对,应为2012-6-3或2012-11-23格式" x0dx0a Response.Endx0dx0aEnd Ifx0dx0aIf IsDate(userSR)=False Thenx0dx0a Response.write "你输入的生日格式不能转化为日期,请核实" x0dx0a Response.Endx0dx0aEnd Ifx0dx0aIf DateDiff("yyyy",userSR,Date())200 Thenx0dx0a Response.write "根据你输入的生可能小于1岁或已经超过200岁了,请核查重新输入" x0dx0a Response.Endx0dx0aEnd Ifx0dx0a'判断年龄合不合法,是否包含非法数据userNL = Trim(userNL)If userNL ="" Thenx0dx0a Response.write "年龄不能为空" x0dx0a Response.Endx0dx0aEnd Ifx0dx0aIf IsNumeric(userNL)=False Thenx0dx0a Response.write "你输入的年龄不能转化为数值,请核查"x0dx0a Response.Endx0dx0aEnd Ifx0dx0auserNL = CInt(userNL)x0dx0aIf userNL200 Thenx0dx0a Response.write "你输入的年龄不能小于0岁或者大于200岁,请核查"x0dx0a Response.Endx0dx0aEnd Ifx0dx0a'判断爱好合不合法,是否包含非法数据ah = Trim(ah) '选择多个爱好则系统会用,分开 //测试x0dx0aah = Replace(ah," ","")x0dx0aarrAh = Split(ah,",")x0dx0aFor i = LBound(arrAh) To UBound(arrAh)x0dx0a If arrAh(i)"sw" And arrAh(i)"ds" And arrAh(i)"ty" Then x0dx0a Response.write i & "你选择的爱好有问题,请核查" & arrAh(i)x0dx0a Response.Endx0dx0a End Ifx0dx0aNextx0dx0a'判断上网方式合不合法,是否包含非法数据swfs = Trim(swfs)If swfs = "" Thenx0dx0a Response.write "上网方式不能为空"x0dx0a Response.Endx0dx0aEnd Ifx0dx0aIf swfs"bhsw" And swfs"wxsw" And swfs"gxsw" Thenx0dx0a Response.write "你选择的上网方式有问题,请核查"x0dx0a Response.Endx0dx0aEnd Ifx0dx0a'判断个人是否为空,是否超出1000个字x0dx0auserGrjs = Trim(userGrjs)x0dx0aIf userGrjs = "" Thenx0dx0a Response.write "个人不能为空" x0dx0a Response.Endx0dx0aEnd Ifx0dx0aIf Len(userGrjs) > 1000 Thenx0dx0a Response.write "个人不能超过1000个字"x0dx0a Response.Endx0dx0aEnd Ifx0dx0aResponse.write "数据合法性检测通过"x0dx0a%>x0dx0a====登陆的HTML代码可相信楼主参照会员注册代码应该没问题了====