Posted by Oli Filth on 09/26/06 23:02
mantrid said the following on 26/09/2006 23:59:
> In some of my script ive been using the followin
>
> if(isset($_POST['mybutton'])){
> header("Location: http://www.mysite.co.uk/path/my.php");
> }
>
>
> This changes the page in the open browser window. How can I modify this to
> open a new window without replacing the parent
You can't. HTTP headers don't work that way.
The only way to achieve this behaviour is to include HTML/JavaScript
code which causes a new window to automatically appear. But note that
that's exactly what a pop-up is, and most browsers have pop-up blockers
nowadays, because people don't like them...
--
Oli
Navigation:
[Reply to this message]
|