Redirecting

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
hmvrulz
Forum Newbie
Posts: 20
Joined: Fri Oct 03, 2008 10:20 pm

Redirecting

Post by hmvrulz »

Is there any way to SHOW A MESSAGE by ECHO and then use HEADER function to redirect the user to a diff page
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Re: Redirecting

Post by aceconcepts »

You can use meta refresh:

Code: Select all

 
echo'This page will redirect in 5 seconds';
 
echo'<meta http-equiv="refresh" content="5;url=http://www.otherwebsite.com">';
 
Post Reply