首页 > Web开发 > 详细

Header() in PHP &html – Refresh (Redirect) to Location (URL) in X seconds

时间:2015-04-20 14:24:45      阅读:305      评论:0      收藏:0      [点我收藏+]

Case 1 : Redirect a page to a URL without waiting in PHP.

1
header("Location: index.php");

 

Case 2 : Redirect a page to an URL after waiting for X seconds in PHP.

1
2
3
4
5
<?php
 
header("Refresh: 5; url=index.php");
 
echo ‘Logged in successfully.‘; ?>

 HTML code to redirect a webpage after X seconds.

1
<meta http-equiv="refresh" content="5; url=http://sau.comli.com/">

Header() in PHP &html – Refresh (Redirect) to Location (URL) in X seconds

原文:http://www.cnblogs.com/vickygiacomo/p/4441222.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!