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
kevin7
Forum Commoner
Posts: 96 Joined: Fri May 21, 2004 6:54 am
Post
by kevin7 » Mon May 24, 2004 10:36 pm
how can i redirect to another page automatically...
without the uses of header() function?
tq...
PrObLeM
Forum Contributor
Posts: 418 Joined: Sun Mar 07, 2004 2:30 pm
Location: Mesa, AZ
Contact:
Post
by PrObLeM » Mon May 24, 2004 10:37 pm
iyou can use html meta refresh...
<meta http-equiv="REFRESH" content="5; URL=index.php">
Joe
Forum Regular
Posts: 939 Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow
Post
by Joe » Mon May 24, 2004 10:42 pm
Yeah meta refresh as said by Pr0bLeM or you can use javascript:
<script>document.location.href='http://www.yoursite.com'</script>
Joe
kevin7
Forum Commoner
Posts: 96 Joined: Fri May 21, 2004 6:54 am
Post
by kevin7 » Mon May 24, 2004 10:42 pm
so, it will redirect after 5 sec?
is there anyway else?
Joe
Forum Regular
Posts: 939 Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow
Post
by Joe » Mon May 24, 2004 10:44 pm
look above
kevin7
Forum Commoner
Posts: 96 Joined: Fri May 21, 2004 6:54 am
Post
by kevin7 » Mon May 24, 2004 10:55 pm
yeah~ it solve my question... tq~
jason
Site Admin
Posts: 1767 Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:
Post
by jason » Mon May 24, 2004 11:15 pm
Why is it that every time I see something like this, I can't help but assume the person is having "Header's already sent errors".
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Mon May 24, 2004 11:24 pm
heh, I'm with ya there, Jason.