【asp精品源码栏目提醒】:以下是网学会员为您推荐的asp精品源码-【精品】ASP+ajax注册验证实例源码 - 互联网,希望本篇文章对您学习有所帮助。
ASPajax 注册验证实例代码 发布时间: 2011-04-13 18:37:48 浏览次数:85326 我要评论0实现验证的功能如下:1、注册时验证数据库用户名是否存在。
2、输入密码时提示密码强度和验证 2 次密码输入是否一样。
3、注册时验证数据库联系邮箱是否存在。
4、注册时验证用户输入的验证码和系统产生的验证码是否一致。
5、对输入中文验证6、QQ 号码验证7、身份证号码验证实例代码如下: 1. ltDOCTYPE html PUBLIC quot-//W3C//DTD XHTML 1.0 Transitional//ENquot quothttp://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtdquotgt 2. lthtml xmlnsquothttp://www.w3.org/1999/xhtmlquotgt 3. ltheadgt 4. ltmeta http-equivquotContent-Typequot contentquottext/html charsetgb23 12quot /gt 5. lttitlegthttp://www.ite5e.com — 会员注册lt/titlegt 6. ltscript languagequotjavascriptquot srcquotregin.jsquot typequottext/javascriptquotgt lt/scriptgt 7. ltstyle typequottext/cssquotgt 8. .trtd 9. line-height:25px 10. font-size:14px 11. color: 333 12. 13. .msg color:FF3300 14. .msg2 color: 00660015. .reg_title16. text-indent:20px17. font-weight:bold18. 19. .STYLE1 color: FF3300 font-weight:bold20. lt/stylegt21. ltbodygt22. ltform actionquotreg.aspquot methodquotpostquot namequotform2quotgt23. lttable widthquot100quot borderquot0quot cellspacingquot1quot cellpaddingquot1quotgt24. lttrgt25. lttd colspanquot4quot classquotreg_titlequotgt用户注册,必填信息lt/tdgt26. lt/trgt27. lttrgt28. lttd widthquot14quot alignquotrightquotgt用户名:lt/tdgt29. lttd widthquot12quotgtltinput namequotu_namequot idquotu_namequot typequottextquot maxlengthquot10quot onblurquotisNamequot /gtlt/tdgt30. lttd widthquot2quotgtltspan classquotSTYLE1quot idquotname_requotgtlt/spangtlt/ tdgt31. lttd widthquot72quot idquotname_re_mquotgt4~10 个字符,一个中文 2 个字符lt/t dgt32. lt/trgt33. lttrgt34. lttd alignquotrightquotgt性 别:lt/tdgt35. lttdgtltinput typequotradioquot namequotu_sexquot valuequot男quot /gt男 ltinput typ equotradioquot namequotu_sexquot valuequot女quot /gt女 ltinput typequotradioquot name quotu_sexquot valuequot人妖quot /gt人妖lt/tdgt36. lttdgtltspan classquotSTYLE1quot idquotsex_requotgtlt/spangtlt/tdgt37. lttd idquotsex_re_mquotgt自己看着选一个lt/tdgt38. lt/trgt39. lttrgt40. lttd alignquotrightquotgt登陆密码:lt/tdgt41. lttdgtltinput namequotu_passquot idquotu_passquot typequotpasswordquot maxlengt hquot12quot onblurquotpasswordquot onkeyupquotshowStrongPicquot/gtlt/tdgt42. lttdgtltspan classquotSTYLE1quot idquotpass_requotgtlt/spangtlt/tdgt43. lttdgtltspan idquotlowPicquot stylequotdisplay:quot gtltimg srcquotimages/gread_l _x.gifquot /gtlt/spangt44. ltspan idquotmidPicquot stylequotdisplay:nonequotgtltimg srcquotimages/gread_m _x.gifquot /gtlt/spangt45. ltspan idquothighPicquot stylequotdisplay:nonequotgtltimg srcquotimages/gread_h _x.gifquot /gtlt/spangtlt/tdgt46. lt/trgt47. lttrgt48. lttd alignquotrightquotgt确认密码:lt/tdgt49. lttdgtltinput namequotu_pass_requot idquotu_pass_requot typequotpasswordquot ma xlengthquot12quot onblurquotpass_requot /gtlt/tdgt50. lttdgtltspan classquotSTYLE1quot idquotpass_re_requotgtlt/spangtlt/tdgt51. lttd idquotpass_re_re_mquotgt请您再输入一次密码lt/tdgt52. lt/trgt53. lttrgt54. lttd alignquotrightquotgt安全问题:lt/tdgt55. lttdgtltse