一个ASP页面添加信息的 问题!~高手帮我看看代码!谢谢!~
<!--#includefile="..\pub\ChkDriver.asp"--><!--#includefile="..\CONN.INC"--><%str="(Mo...
<!--#include file="..\pub\ChkDriver.asp"-->
<!--#include file="..\CONN.INC"-->
<%
str="(MobileID,DriverID,UserID,EventDate,Compensate,ResultDescription)"
str=str&"Values ('"&Request("MobileID")&"','"&Request("DriverID")&"','"&Request("UserID")&"','"&Request("EventDate")&"'"
str=str&",'"&Request("Compensate")&"','"&Request("ResultDescription")&"')"
response.write str
Sqlstring="Insert into AccInfo "&str
Conn.execute(Sqlstring)
set conn=nothing
%>
<form name=reDirectURL action=addacc.asp method=post></form>
<script language="javascript">
alert("新的事故信息已经添加");
document.reDirectURL.submit();
</script> 展开
<!--#include file="..\CONN.INC"-->
<%
str="(MobileID,DriverID,UserID,EventDate,Compensate,ResultDescription)"
str=str&"Values ('"&Request("MobileID")&"','"&Request("DriverID")&"','"&Request("UserID")&"','"&Request("EventDate")&"'"
str=str&",'"&Request("Compensate")&"','"&Request("ResultDescription")&"')"
response.write str
Sqlstring="Insert into AccInfo "&str
Conn.execute(Sqlstring)
set conn=nothing
%>
<form name=reDirectURL action=addacc.asp method=post></form>
<script language="javascript">
alert("新的事故信息已经添加");
document.reDirectURL.submit();
</script> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询