Reply
Header Question
Old 02-23-2005, 03:00 PM Header Question
merlin's Avatar
Skilled Talker

Posts: 52
Hi,

If I have a header redirect how would I change the code to have the page open in its own window?

Code I have for opening in the current browser,
PHP Code:
header('location: http://www.google.com'); 
Thanks...
merlin is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 02-23-2005, 03:04 PM
camperjohn's Avatar
Ultra Talker

Posts: 268
Location: San Diego
I don't think you can do that. The redirection is for the current window.

To open a new window I'm pretty sure you need javascript window.open()
camperjohn is offline
Reply With Quote
View Public Profile Visit camperjohn's homepage!
 
Old 02-24-2005, 08:05 PM
Christopher's Avatar
Iced Cap

Posts: 3,111
Location: Toronto, Ontario
Correct. The header() function just sends a header to the client, there is no header to open up a new window. So you will have to do as camperjohn suggested and use Javascript to open it for you.
Christopher is offline
Reply With Quote
View Public Profile Visit Christopher's homepage!
 
Reply     « Reply to Header Question
 

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11629 seconds with 12 queries