asp明明接到数据,插入进去就空了??
'get提交后显示的值http://localhost/iis/Sub.asp?iptName=222&iptEmail=222&iptIndenty=2222&iptA...
'get提交后显示的值
http://localhost/iis/Sub.asp?iptName=222&iptEmail=222&iptIndenty=2222&iptAddress=22222&submit.x=64&submit.y=12
'Sub.asp 代码
<!--#include file="conn.asp" -->
<%
sz = "'" & Request.Form("iptName") &_
"', '"& Request.Form("iptEmail") &_
"', '"& Request.Form("iptIndenty") &_
"', '"& Request.Form("iptAddress") & "'"
into_db = "insert into Orders ( iptName, iptEmail, iptIndenty, iptAddress) VALUES(" &_
sz & ")"
conn.Execute(into_db)
conn.Close
%>
您的数据已经写入数据库!!! 展开
http://localhost/iis/Sub.asp?iptName=222&iptEmail=222&iptIndenty=2222&iptAddress=22222&submit.x=64&submit.y=12
'Sub.asp 代码
<!--#include file="conn.asp" -->
<%
sz = "'" & Request.Form("iptName") &_
"', '"& Request.Form("iptEmail") &_
"', '"& Request.Form("iptIndenty") &_
"', '"& Request.Form("iptAddress") & "'"
into_db = "insert into Orders ( iptName, iptEmail, iptIndenty, iptAddress) VALUES(" &_
sz & ")"
conn.Execute(into_db)
conn.Close
%>
您的数据已经写入数据库!!! 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询