浏览主站 | 站长合租 | 新闻资讯 | 站长学院 | 站长盈利 | HTML教程 | 网址导航 | 站长周刊 | 会员投稿 | 滚动新闻 | RSS
 13 12
发新话题
打印

[代码问题] 谁帮我看下程序啊,谢谢,老调不好

谁帮我看下程序啊,谢谢,老调不好

<!--#include file="../Include/conn.asp"-->
<%
dim action
action=trim(request.form("action"))
if action="save" then
set rs=server.CreateObject("adodb.recordset")
rs.Open "select a,b from c",conn,1,3
rs.addnew()
rs("b")=request.form("dqydbt")
response.Write rs("b")
response.End
rs.update
rs.close
set rs=nothing
response.Write "<script language=javascript>alert('信息添加成功!');history.go(-1);</script>"
else
%>
<title>添加党群园地信息</title>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" BGCOLOR="#39867B">
  <tr>
    <td height="40"> <div align="center"><font color="#ffffff">
      
       添加党群园地信息</font></div></td>
  </tr>
  <tr>
    <td height="107" valign="top"  BGCOLOR="#E1F4EE"> <table width="100%" border="0" align="center" cellpadding="3" cellspacing="0">
        <form name="form1" method="post" action="test.asp?action=save">
          <tr>
               <td height="20">
    <p align="center">党群园地标题:<input name="dqydbt" type="text" id="dqydbt" size="56"></td>
          </tr>     
     
         
          <tr>
            <td height="22" > <div align="center">
                <input type="submit" name="Submit" value="提 交">
                <input name="action" type="hidden" value="save">
                  
               
              </div></td>
          </tr>
        </form>
      </table>
      <%rs.Close
          set rs=nothing
    conn.close
    set conn = Nothing
end if   
%>
    </td>
  </tr>
</table>
</body>
</html>
conn.asp


<%
on error resume next
dim conn,connstr,db
db="smxfx.mdb"
c& Server.MapPath(db)
Set conn=Server.CreateObject("ADODB.Connection")
conn.Open connstr
%>

[ 本帖最后由 goodboyhao 于 2007-11-12 09:00 编辑 ]

TOP

这是一段添加记录信息的脚本。。。。没什么问题。提示什么错误。

TOP

没错误 提示,就是数据库里没数据啊,我弄了2天,没行

TOP

登录失败:
  原因:    用户名未知或密码错误
  用户名:  IUSR_LENOVO-ED9AEFCE
  域:   LENOVO-ED9AEFCE
  登录类型:  2
  登录过程:  IIS     
  身份验证程序包:  MICROSOFT_AUTHENTICATION_PACKAGE_V1_0
  工作站名:  LENOVO-ED9AEFCE

事件查看器里都是这,我用sql的库就能行

TOP

晕你都牵涉到与域服务器了。。但错误提示是用户名密码。而非脚本。。

TOP

....那这个问题 怎么解决啊

TOP

我就那一个页面,和个access的库,杂这复杂了

TOP

VS2005装了没有。

TOP

不是复杂的问题。服务器设计的问题。看你的提示还牵涉到域了
这样 你下个 netbox 用他来调试脚本啊。这个不会出问题的。

TOP

在此谢谢各位热心的朋友了,我去弄去

TOP

 13 12
发新话题