数据库SQL 在本地测试一却正常  可放到网上去``可以正常的显示和删除但就是整个程序的添加都不行``添加不 了新数据```到底怎么回事?以为是自己写的代码环节上出错`但做了以下测试也是一样不行```
http://m2596.s2.changw.com/aa.asp
数据库连接:
startime=timer()
Set conn = Server.CreateObject("ADODB.Connection")
conn.open  "driver=sql server;server=211.157.107.152;uid=haolwu168_f;password=haolwu168;database=haolwu168;"填写记录<form action="aa.asp?add=ok" method="post" name="form" id="form">
          <label>
          <input name="username" type="text" id="username" size="10">
          </label>
                <label>
                <input type="submit" name="button" id="button" value="提交">
              </label>
        </form>
添加记录
<%
if Request("add")="ok" then
username=request("username")
if username<>"" then
Response.Write""&username&""'查看传递过来的值是否成功
end if
'sql="insert into adminhm(username)values('"&username&"')"
'conn.execute(sql)
sql="select * from adminhm"
rs.open sql.conn,3,3
rs.addnew
rs("username")=username
rs.update
rs.close
Response.Write"添加成功"
end if
%>