1. 论坛系统升级为Xenforo,欢迎大家测试!
    排除公告

请好心的高手帮我看看这个代码里不对

本帖由 俊俊鱼2006-10-18 发布。版面名称:新人报道

  1. 俊俊鱼

    俊俊鱼 New Member

    注册:
    2006-06-16
    帖子:
    6
    赞:
    0
    代码:
    <%if Request.QueryString("mod")="yes" then
    user=Request("user")
    dz=Request("dz")
    tel=Request("tel")
    zjh=Request("zjh")
    jdrq=Request("jdrq")
    gz=Request("gz")
    th=Request("th")
    sz=Request("sz")
    xsj=Request("xsj")
    jz=Request("jz")
    Remarks=Request("Remarks")
    tx=Request("tx")
    If dz="" or tel="" or zjh="" or jdrq="" or th="" Then
    response.write"<SCRIPT language=JavaScript>alert('请按照规定修改您的信息!');" 
    response.write"javascript:history.go(-1)</SCRIPT>" 
    response.end
    end if
    If gz="请选择工种" Then
    response.write"<SCRIPT language=JavaScript>alert('请选择工种!');" 
    response.write"javascript:history.go(-1)</SCRIPT>" 
    response.end
    end if
    
    Set rs = Server.CreateObject("ADODB.Recordset")
    sql="select * from [jy_lp] where id="&request("id")
    rs.open sql,conn,1,3
    rs("user")=user
    rs("dz")=dz
    rs("tel")=tel
    rs("zjh")=zjh
    rs("jdrq")=jdrq
    rs("gz")=gz
    rs("th")=th
    rs("sz")=sz
    rs("xsj")=xsj
    rs("jz")=jz
    rs("Remarks")=Remarks
    rs("tx")=tx
    rs.update
    rs.close
    response.redirect "login.asp"
    end if%>
    
     
  2. 风狼

    风狼 New Member

    注册:
    2005-10-01
    帖子:
    7,452
    赞:
    25
    大错没看出来。错误提示是什么?