| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 453 人关注过本帖
标题:[求助]编译器错误 (0x800A03FD)
只看楼主 加入收藏
情过风迁
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2006-6-19
收藏
 问题点数:0 回复次数:1 
[求助]编译器错误 (0x800A03FD)
本人刚刚学习ASP不久,在学习过程中遇到以下问题,百思不得其解,请高手指点!谢谢!
该程序本来运行得好好的,突然变成这样了,不晓得怎么回事!

  • 错误类型:
    Microsoft VBScript 编译器错误 (0x800A03FD)
    缺少 'Case'
    /zsw1/web/user/regsave.asp, 第 10 行

  • 浏览器类型:
    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)

  • 网页:
    POST 258 ??? /zsw1/web/user/regsave.asp


    源代码:
    <%
    dim sql,rs,rs2
    dim password
    if request.form("username")<>empty then
    sql="select * from [user] where [Username]='"&trim(request.form("Username"))&"'"
    set rs=execute(sql)

    dim ConnStr,conn2
    Db = "../bbs/data/Dvbbs7.mdb"
    ConnStr = "Provider = Microsoft.Jet.OLEDB.4.0;Data Source = " & Server.MapPath(db)
    Set conn2 = Server.CreateObject("ADODB.Connection")
    conn2.open ConnStr
    sql="select username from dv_user where username='"&trim(request.Form("username"))&"'"
    set rs2=conn2.execute(sql)

    if rs.eof and rs2.eof then
    password=md5(trim(replace(request.form("password"),"'","")),16)
    sql ="Insert Into [user] ([Username],[Password],problem,answer,usertype,[name],idcard,csny,qq,tel,sex,msn,city,email)Values("
    sql=sql&"'"&trim(request.Form("username"))&"',"
    sql=sql&"'"&Password&"',"
    sql=sql&"'"&trim(request.Form("problem"))&"',"
    sql=sql&"'"&md5(Request.form("answer"),16)&"',0,"
    sql=sql&"'"&trim(request.Form("name"))&"',"
    sql=sql&"'"&trim(request.Form("idcard"))&"',"
    sql=sql&"'"&trim(request.Form("csny"))&"',"
    sql=sql&"'"&trim(request.Form("qq"))&"',"
    sql=sql&"'"&trim(request.Form("tel"))&"',"
    sql=sql&trim(request.Form("sex"))&","
    sql=sql&"'"&trim(request.Form("msn"))&"',"
    sql=sql&"'"&trim(request.Form("city"))&"',"
    sql=sql&"'"&trim(request.Form("email"))&"')"
    execute(sql)

    dim answer
    dim Dvbbs,TruePassWord
    Set Dvbbs = New Cls_Forum
    TruePassWord=Dvbbs.Createpass
    answer=md5(Request.form("answer"),16)
    sql ="Insert Into [Dv_user] ([UserName],UserPassword,UserEmail,Userclass,TitlePic,UserQuesion,UserAnswer,TruePassWord,UserIM,UserSign,UserPost,UserGroupID,Lockuser,UserSex,UserBirthday,UserGroup,JoinDate,UserFace,UserWidth,UserHeight,UserLogins,LastLogin,userWealth,userEP,usercP,UserInfo,UserSetting,UserPower,UserDel,UserIsbest,UserFav,IsChallenge,UserLastIP)Values("
    sql=sql&"'"&trim(request.Form("username"))&"',"
    sql=sql&"'"&password&"',"
    sql=sql&"'"&trim(request.Form("email"))&"',"
    sql=sql&"'新手上路',"
    sql=sql&"'level0.gif',"
    sql=sql&"'"&trim(request.Form("problem"))&"',"
    sql=sql&"'"&answer&"',"
    sql=sql&"'"&TruePassWord&"',"
    sql=sql&"'||||||||||||||||||',"
    sql=sql&"' ',"
    sql=sql&"0,"
    sql=sql&"25,"
    sql=sql&"0,"
    sql=sql&request.Form("sex")&","
    sql=sql&"' ',"
    sql=sql&"' ',"
    sql=sql&"'"&NOW()&"',"
    sql=sql&"'images/userface/image1.gif',"
    sql=sql&"32,"
    sql=sql&"32,"
    sql=sql&"1,"
    sql=sql&"'"&NOW()&"',"
    sql=sql&"1000,"
    sql=sql&"200,"
    sql=sql&"30,"
    sql=sql&"'||||||||||||||||||||||||||||||||||||||||||',"
    sql=sql&"'1|||0|||0',"
    sql=sql&"0,"
    sql=sql&"0,"
    sql=sql&"0,"
    sql=sql&"'陌生人,我的好友,黑名单',"
    sql=sql&"0,"
    sql=sql&"'"&Request.ServerVariables("REMOTE_ADDR")&"')"
    conn2.execute(sql)
    conn2.execute("UpDate Dv_Setup Set Forum_UserNum=Forum_UserNum+1,Forum_lastUser='"&trim(request.Form("username"))&"'")
    Message "您已经成功注册.","login.asp"
    else
    Backup "对不起您选择的会员名已经存在!请选择其它会员名再试一次."
    end if
    else
    response.Redirect("reg.asp")
    end if
    %>
  • 搜索更多相关主题的帖子: 编译 
    2006-06-19 10:31
    情过风迁
    Rank: 1
    等 级:新手上路
    帖 子:2
    专家分:0
    注 册:2006-6-19
    收藏
    得分:0 
    请高手指点!谢谢啦!
    2006-06-19 10:33
    快速回复:[求助]编译器错误 (0x800A03FD)
    数据加载中...
     
       



    关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

    编程中国 版权所有,并保留所有权利。
    Powered by Discuz, Processed in 0.016480 second(s), 9 queries.
    Copyright©2004-2024, BCCN.NET, All Rights Reserved