ASP中有句不懂的,希望给予解答,谢谢

来源:百度知道 编辑:UC知道 时间:2024/06/23 05:47:14
<title>我的购物车</title>
<%
dim id,username,action
action=FormatSQL(SafeRequest("action",0))
id=SafeRequest("id",1)
username=trim(request.cookies("timesshop")("username"))

select case action
case "del"
conn.execute "delete from orders where actionid="&FormatSQL(SafeRequest("actionid",1))
if SafeRequest("ll",1)=22 then
response.redirect "profile.asp?action=addtocart"
else
response.redirect "addto.asp?action=show"
end if
response.End

其中action=FormatSQL(SafeRequest("action",0))
id=SafeRequest("id",1)
是什么意思啊?还有
conn.execute "delete from orders where actionid="&FormatSQL(SafeRequest("actionid",1))
if SafeRequest("ll",1)=22 then
小弟新手 ,看不懂
Function SafeRequest(ParaName,ParaType)
Dim ParaValue
Par

FormatSQL()
SafeRequest()
这两个函数在MSDN里没有找到,所以应该是两个自定义函数。
看看那段程序中是否有<!-- #include file=""-->语句或者程序后面是否定义了这两个函数。

SafeRequest应该是自定义函数,找找看,肯定有
function SafeRequest()
的定义

SafeRequest 肯定是他自己编的一个函数,你仔细找找。