Re: can Header open in a new window?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Angelo,

Thursday, December 23, 2004, 11:47:03 AM, you wrote:

AZ> I have a PHP script that uses a header("Location: http://"; . $href);
AZ>         statement that redirects to another page. The problem I have
AZ> is that I need this new page to open up in a new window, as the PHP is
AZ> being called from an IFrame. Is there a way the Header statement can do
AZ> it? or is the header statement the incorrect way to perform this
AZ> function?

It's not an incorrect way, it just won't work. The headers don't
control browser behaviours like this - the opening in a new window is
a browser level function, i.e. something defined by an href target, etc
which the browser should (but will not always) adhere to.

The only way I could think of would be to write out some client side
script to make a new window open (JavaScript, etc)

Best regards,

Richard Davey
-- 
 http://www.launchcode.co.uk - PHP Development Services
 "I am not young enough to know everything." - Oscar Wilde

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux