Redirect Page after 10 seconds

hey guys,

if you have a page you want to show for a few seconds and after that you want new page on same browser window. for example let say you want to display advertisement on your page for few second, after that you want to display website content on same browser window.

so here is code,

<?php
$book = $_GET[‘book’];
header (“Refresh: 10; url=../pdf/$book“);
?>
<html>
<head>
<title>Advertisement</title>
</head>
<body>
<h1>
<p>
Advertisement Here!!!!
</p></h1>
</body>
</html>

Note : That Bold font indicate url which you want to redirect after 10 seconds.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s