0

I want to redirect a user after a few seconds without using javascript. Is this possible?

Thanks.

4
Contributors
7
Replies
8
Views
8 Years
Discussion Span
Last Post by !Unreal
0

Thanks, works great.

Are there ways to do this with normal PHP queries? So dont execute it untill a given time?

0
header('Refresh: 3;url=yoururl.com');

Although this piece of code is fine it is recomended to always send redirect/refresh requests as absolute E.G. your request should always be in the form of
http://site/page

0

u can do this with the help of meta tag as well

<meta http-equiv="refresh" content="8; URL=mypage.php?cmd=done?>">//it will wait for 8 seconds then redirect to other page

0

But that envolves outputing a HTML page and is not as reliable. With a META tag you would have to output a HTML page and the page would have to load first. With the php Header method it is almost instant redirection without the need to output a HTML page.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.