求html插入数据库的问题,不知那里写错了,求哪位大神帮忙解决 50
html代码:<formmethod="POST"action="dinggou_save.asp"><tableborder="0"bordercolor="#0000...
html代码:<form method="POST" action="dinggou_save.asp"><table border="0" bordercolor="#000000"><tr><td width="91" height="34"><div align="center">姓名:</div></td><td width="180"><input name="user" type="text" id="user" value=""></td></tr><tr><td height="27" colspan="2"><div align="center"><input name="submit" type="submit" value="提交"/></div></td></tr></table></form>dinggou_save.asp的代码<% dim sql set conn=server.createobject("adodb.connection") conn.open "provider=SQLOLEDB;Server=(local);uid=qds12487549;pwd=ZHANGbo888;database=qds12487549" set rs=server.createobject("adodb.recordset") rs.open sql,conn,3,2 rs.addnew Rs("user")=request.Form("user") Rs("time")=now() rs.updateresponse.Write("<script language='javascript'>alert('提交成功!');</script>")%>
展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询