response.redirect返回给下级的语句

王朝知道·作者佚名  2012-02-17
窄屏简体版  字體: |||超大  
 
分類: 電腦/網絡 >> 程序設計 >> 其他編程語言
 
問題描述:

<!--#include file="conn.asp"-->

<%

password=request("Password")

phone=request("Mobile")

State=request("State")

ProductID=request("ProductID")

ExtData=request("ExtData")

call ConnectionDatabase

Set Rs=GrateRs("select * from mobile1 where number='"&phone&"'",1)

if not Rs.eof then

upline=Rs("upline")

username=Rs("username")

ip=Rs("ip")

port=Rs("port")

end if

if request("State")="1" then

Select case State

case "1" '定制成功

if Set_Usr_kconn>0 then

Set Rs=GrateRs("Select * from Kcount",3)

kcount1=Rs("count1")

if kcount1>Set_Usr_kconn then

Rs("count1")=0

mKstate=3

Else

Rs("count1")=Rs("count1")+1

End if

Rs.update

end if

Set Rs=GrateRs("select * from mobile where number='"&phone&"'",3)

if Rs.eof then Rs.addnew

Rs("number") = phone

Rs("ip") = ip

Rs("regDate") = Date()

Rs("regTime") = Time()

Rs("chkDate") = Date() + 30

Rs("password") = password

Rs("value") = "有效"

if mKstate=3 then Rs("state")=3

if Upline <> "" then Rs("upline") = Upline

Rs("username") = username

Rs("port") = port

Rs.Update

case "0"

Set Rs=GrateRs("select * from mobile where number='"&phone&"'",3)

if not Rs.eof then

Rs("value")="无效"

Rs.Update

end if

end select

end if

if mKstate<>3 then

response.redirect reportaddress&"?type=order&Mobilephone="&phone&"&password="&password&"&state=1"

response.end

end if

response.write "1"

call DBConnEnd

response.end

%>

看到上面的代码了吗? 意思是SP把订制的信息返回到我的CP平台的report.asp,上面的代码就是report.asp. 我的意思是想让SP返回给我信息我再返回给我的下级.很多人说面的response.redirect这地方错误,可我忙了半天,测试了好多人的答案都不行,高手帮忙解决了,我高高的悬赏积分哦.

參考答案:

你的程序和你的问题一样,不清不楚。

看了半天,总算把结构理清楚,发现好多地方设计得不合理或是错误,还有好几个变量没有赋值。

小贴士:① 若网友所发内容与教科书相悖,请以教科书为准;② 若网友所发内容与科学常识、官方权威机构相悖,请以后者为准;③ 若网友所发内容不正确或者违背公序良俗,右下举报/纠错。
 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航