header question

This is a discussion on header question within the alt.comp.lang.php forums, part of the PHP Programming Forums category; I want to use header("Location:........") but i want to open it in a blank page. How do ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-29-2004
Peter
 
Posts: n/a
Default header question

I want to use header("Location:........") but i want to open it in a blank
page.
How do i do that?

thanks in advance

--
Peter Naber
E: peter@hostingu2.nl
W: http://www.hostingu2.nl


Posted by news://news.nb.nu
Reply With Quote
  #2 (permalink)  
Old 08-29-2004
Janwillem Borleffs
 
Posts: n/a
Default Re: header question

Peter wrote:
> I want to use header("Location:........") but i want to open it in a
> blank page.
> How do i do that?
>


You can't, because the opening of a new page is a client-side decision and
not triggered by HTTP headers.

One way to do it is with javascript, e.g.:

window.onload = function () {
window.open("somepage.html");
}


JW



Reply With Quote
Reply


Thread Tools
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:06 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0