PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 14th, 2000, 02:36 PM
TerryS999 TerryS999 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 12 TerryS999 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Does anyone know how to redirect in PHP?

go_to_url => "www.gothere.com"

An easy one, I know. I thought I knew how, but I guess not.

Thanks,

Terry Scott

[This message has been edited by TerryS999 (edited June 14, 2000).]

Reply With Quote
  #2  
Old June 14th, 2000, 02:56 PM
Robman Robman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 1999
Location: SLC, UT, USA
Posts: 47 Robman User rank is Private First Class (20 - 50 Reputation Level)Robman User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
Something like this might work:

header("Location: <A HREF="http://www.foo.com/");" TARGET=_blank>http://www.foo.com/");</A>

Robman

Reply With Quote
  #3  
Old June 14th, 2000, 03:13 PM
TerryS999 TerryS999 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 12 TerryS999 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
It's after the header has been written though.

Reply With Quote
  #4  
Old June 16th, 2000, 08:38 AM
aarongb aarongb is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Posts: 60 aarongb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
When I need a 'splash' sort of page, I just use javascript for a redirect, then redirect to another php page if I need to.

<SCRIPT>
<!--
function autoChange()
{
var timeID = setTimeout("location.href= 'http://www.site.com'", 5000)
}

//-->
</SCRIPT>


And include 'onLoad="autoChange()' in the Body tag.


Reply With Quote
  #5  
Old June 19th, 2000, 02:44 PM
Dz9r
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
<?PHP

header("location: <A HREF="http://www.whereuwanttoredirect.com/");" TARGET=_blank>http://www.whereuwanttoredirect.com/");</A>

exit;
?>

The exit will prevent the program from running (stops memory leaks)



Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > How do you redirect in php?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap