[整理] 页面跳转代码
时间:2007-11-27 来源:liangzhwa
第二篇: 页面跳转
head>
meta http-equiv="refresh" content="10; url=http://www.baidu.com">
/head>
第三篇: 动态页面跳转
方法一: PHP 跳转
?php
header("location: http://www.baidu.com");
?>
方法二: ASP 跳转
%
response.redirect "http://www.baidu.com"
%>
FYI:
%
Dim ID1
Dim ID2
dim str
ID1 = Request("forumID")
ID2 = Request("threadID")
str="/blog/threadview.asp?forumID="& ID1 &"&threadID=" & ID2
response.redirect str
%>
header不能出现在任何输出和SESSION操作之后
如果在程序中部使用跳转,可以使用JavaScript
echo ('
window.location.href="xxx.htm";
');
head>
meta http-equiv="refresh" content="10; url=http://www.baidu.com">
/head>
第三篇: 动态页面跳转
方法一: PHP 跳转
?php
header("location: http://www.baidu.com");
?>
方法二: ASP 跳转
%
response.redirect "http://www.baidu.com"
%>
FYI:
%
Dim ID1
Dim ID2
dim str
ID1 = Request("forumID")
ID2 = Request("threadID")
str="/blog/threadview.asp?forumID="& ID1 &"&threadID=" & ID2
response.redirect str
%>
header不能出现在任何输出和SESSION操作之后
如果在程序中部使用跳转,可以使用JavaScript
echo ('
window.location.href="xxx.htm";
');
相关阅读 更多 +
排行榜 更多 +