Popular Articles | Latest Articles | Categories | RSS Feeds

Login  |  Register

How to Refresh a web page or redirect to another page

Published on 3/21/2007 by editor
 Vote this tutorial:

More articles in PHP

There are many useful functions in PHP. Refresh function is a real focus and helps to us to redirect apage or refresh page itself. Let's see it in action.



Sample Code - Refreshing a single page :

    header("Refresh: 10;");
?>

This simple code refreshes the page in every 10 seconds. If you wish to refresh page in different times, just play with secound.

Sample Code - Refreshing and redirecting a page :

header("Refresh: 10; url=http://www.dotnetindex.com/read.asp?articleID=3011");
?>

Yes, ths is a cool function. Page will be displayed in 10 seconds and later will redirect to another page.


Comments:
no comments submitted


Only members can write comments.Please, login / register to write comment.

Latest Posts

Active News Manager - news management system



ASP.NET Resources, Reviews

ASP Resources, Reviews

PHP, ASP, .NET, JSP Resources, Reviews




Who's online

  • There 47 online users.

ASP.NET Resources, Reviews

ASP Resources, Reviews

PHP, ASP, .NET, JSP Resources, Reviews

Hotscripts.com Free Photoshop, Flash and 3DS MAX tutorials