登陆问题

ainney2000 2003-12-15 01:28:06
假如我在这个页面登陆
bigclass.asp?typeid=10&bigclassid=18 其中typeid和bigclassid为可变参数
通过系统认证后又返回的这个页面,如何实现

...全文
58 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
shoopman 2003-12-15
  • 打赏
  • 举报
回复
其实用response.redirect request.servervariables("http_referer")可不一定能回到原来的页面.比如说一个用来搜索的search.asp程序,如果它接收关键词是用request.form("keyword"),那从它接收到post方式的后的页面转到用response.redirect request.servervariables("http_referer")的页面,就能返回原来的搜索结果吗?
os586 2003-12-15
  • 打赏
  • 举报
回复
错了,是http_referer
shoopman 2003-12-15
  • 打赏
  • 举报
回复
呵呵,os586(冷菜),是这样吧:
response.redirect request.servervariables("http_referer")
monkeys 2003-12-15
  • 打赏
  • 举报
回复
bigclass.asp?typeid=10&bigclassid=18 其中typeid和bigclassid为可变参数
通过系统认证后又返回的这个页面,如何实现


楼主,偶没有很明白你的意思
os586 2003-12-15
  • 打赏
  • 举报
回复
用response.redirect request.servervariables("http_inferer")
用这句代码的话无论你在什么页面登录它都回会到你要登录的原始页面
zhengcuixia198132 2003-12-15
  • 打赏
  • 举报
回复
up
flying310 2003-12-15
  • 打赏
  • 举报
回复
可以把系统的认证做成一个函数,需要认证就调用.
luluso 2003-12-15
  • 打赏
  • 举报
回复
id=request("typeid")
class=request("bigclassid")
if id... and class ... then 'id=... and class... 是你要做的判断
response.redirect bigclass.asp
else
错误
response.end
angelheavens 2003-12-15
  • 打赏
  • 举报
回复
dim RedirectFileName,URLs

Sub InfoDialog(Info,URLs)
response.write "<script language=javascript>"
response.write "alert('"&Info&"');"
response.write URLs
response.write "</script>"
response.end
End Sub

RedirectFileName=Request.ServerVariables("HTTP_REFERER")

URLs="self.location.href='"&RedirectFileName&"';"
Call InfoDialog(Info,URLs)
xzq686 2003-12-15
  • 打赏
  • 举报
回复
怎么样通过系统认证??
说的不太明白
shoopman 2003-12-15
  • 打赏
  • 举报
回复
使用Request.ServerVariables("Query_String")取得URL的问号?后面的字符串值,通过系统认证后用Response.Redirect "bigclass.asp?"&Request.ServerVariables("Query_String")
就可以了

28,405

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧