You are here: Re: specifying a new window when using Location: « PHP Programming Language « IT news, forums, messages
Re: specifying a new window when using Location:

Posted by Johnny on 09/27/06 04:04

"mantrid" <ian.dandav@virgin.net> wrote in message
news:DhiSg.42230$wo3.37618@newsfe7-gui.ntli.net...
> 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
>
>
this works:

if(isset($_POST['mybutton'])){
echo <<<WIND
<script type="text/javascript">
window.open("http://www.mysite.co.uk/path/my.php");
</script>
WIND;
}

but as you can se also requires js

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация