Forum Home
|
Marketplace
|
Articles
|
Blogs
|
Interviews
|
Tools
REGISTER
|
SEARCH
|
MEMBERS
|
F.A.Q.
Register Here
Forum Rules
Webmaster-Talk.com
>
Coding Talk
>
PHP Forum
>
Header Question
Link Back
Thread Tools
Header Question
02-23-2005, 03:00 PM
#
1
(
permalink
)
Header Question
merlin
Skilled Talker
Posts: 52
Talkupation:
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...
When You
Register
, These Ads Go Away!
02-23-2005, 03:04 PM
#
2
(
permalink
)
camperjohn
Ultra Talker
Posts: 268
Location: San Diego
Talkupation:
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()
__________________
http://www.rentyourdot.com
http://www.homepagepal.com
02-24-2005, 08:05 PM
#
3
(
permalink
)
Christopher
Iced Cap
Latest Blog Post:
Overview: Creating Scalable Websites
Posts: 3,111
Location: Toronto, Ontario
Talkupation:
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.
__________________
Devlog
- Latest Articles:
MVC with the Zend Framework
,
PHP and UTF8
::
The New Tech - Technology Forum
« Reply to
Header Question
Previous Thread
|
Next Thread
Webmaster-Talk.com
>
Coding Talk
>
PHP Forum
>
Header Question
Thread Tools
Show Printable Version
Email this Page
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
Web Templates
|
Text Link Brokers
|
Stock Photos
Feeds:
RSS
JS
XML
Feeds for this forum:
RSS
JS
XML
Mark Forums Read
-
View Forum Leaders
-
Contact Us
-
Webmaster Forum
-
Advertise
-
Archive
-
Privacy Statement
-
Top
Page generated in
0.11485
seconds with
12
queries