计算机应用 | 古代文学 | 市场营销 | 生命科学 | 交通物流 | 财务管理 | 历史学 | 毕业 | 哲学 | 政治 | 财税 | 经济 | 金融 | 审计 | 法学 | 护理学 | 国际经济与贸易
计算机软件 | 新闻传播 | 电子商务 | 土木工程 | 临床医学 | 旅游管理 | 建筑学 | 文学 | 化学 | 数学 | 物理 | 地理 | 理工 | 生命 | 文化 | 企业管理 | 电子信息工程
计算机网络 | 语言文学 | 信息安全 | 工程力学 | 工商管理 | 经济管理 | 计算机 | 机电 | 材料 | 医学 | 药学 | 会计 | 硕士 | 法律 | MBA
现当代文学 | 英美文学 | 通讯工程 | 网络工程 | 行政管理 | 公共管理 | 自动化 | 艺术 | 音乐 | 舞蹈 | 美术 | 本科 | 教育 | 英语 |

ASP网上购书(一)毕业论文网(6)

2013-05-30 01:39
导读:ont/a /font/td/tr/table/td/tr/table" end sub ‘同意条约后进入下一个注册画面,注册画面的主要代码:请看[附件1] ‘如果[用户名]为空则显示错误信息,同时跳出下
ont></a> </font></td></tr></table></td></tr></table>"
end sub
‘同意条约后进入下一个注册画面,注册画面的主要代码:请看[附件1]
‘如果[用户名]为空则显示错误信息,同时跳出下列子程序
function check()
{
   if(checkspace(document.userinfo.username.value)) {
 document.userinfo.username.focus();
    alert("用户名不能为空,请重新输入!");
 return false;
  },
‘如果[用户名]有所输入,但是输入的长度小于四,则会跳出:
if(checkspace(document.userinfo.username.value) || document.userinfo.username.value.length < 4) {
 document.userinfo.username.focus();
    alert("用户名长度不能小于4,请重新输入!");
 return false;
‘如果没有输入密码,或者密码的长度<6则会跳出:
if(checkspace(document.userinfo.userpassword.value) || document.userinfo.userpassword.value.length < 6) {
 document.userinfo.userpassword.focus();
    alert("密码长度不能小于6,请重新输入!");
 return false;
‘如果输入密码后,没有输入[确认密码]则会跳出:
if(document.userinfo.userpassword.value != document.userinfo.userpassword1.value) {
 document.userinfo.userpassword.focus();
 document.userinfo.userpassword.value = '';
 document.userinfo.userpassword1.value = '';
    alert("两次输入的密码不同,请重新输入!");
 return false;
确定后[输入密码]处的密码清空,其它不变
‘如果没有输入[Email]地址或者少了“@”字样,则会出现“Email地址格式不正确”跳出:
if(document.userinfo.useremail.value.length!=0)
  {
    if (document.userinfo.useremail.value.charAt(0)=="." ||       
         document.userinfo.useremail.value.charAt(0)=="@"||      
         document.userinfo.useremail.value.indexOf(, 0) == -1 ||
         document.userinfo.useremail.value.indexOf('.', 0) == -1 ||
         document.userinfo.useremail.value.lastIndexOf("@")==document.userinfo.useremail.value.length-1 ||
         document.userinfo.useremail.value.lastIndexOf(".")==document.userinfo.useremail.value.length-1) {
      alert("Email地址格式不正确!");
      document.userinfo.useremail.focus();
      return false;
      }}
 else
  {
   alert("Email不能为空!");
   document.userinfo.useremail.focus();
   return false;
   }}
‘如果正确填写完后,显示恭喜成功页面,并且返回首页
response.Write "<table width=776 border=0 align=center cellpadding=0 cellspacing=1 bgcolor=#D0E2FD><tr><td height=100 bgcolor=#FFFFFF>"
response.Write "<table width=90% border=0 align=center cellpadding=0 cellspacing=0><tr><td height=80 bgcolor=#EFF5FE class=pad><font color=#cb6f00>用户注册成功</font><br>"
response.Write "恭喜"&request.Cookies("bookshop")("username")&",您已注册成为《"&webname&"》正式用户,请进行下一步操作:<br>"
response.Write "·<a href=myuser.asp?action=shouhuoxx>填写收货人详细资料</a><br>·<a href=index.
上一篇:ASP同学录设计asp+sql(一)毕业论文 下一篇:没有了