Re: [PHP] Opening a new window from Header Location or any other way

This is a discussion on Re: [PHP] Opening a new window from Header Location or any other way within the PHP General forums, part of the PHP Programming Forums category; You do need javascript to do this. Look into the "window.open()" function to open your other window, ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-22-2008
Chris Braiotta
 
Posts: n/a
Default Re: [PHP] Opening a new window from Header Location or any other way

You do need javascript to do this. Look into the "window.open()"
function to open your other window, and then something like
"self.close()" to close the login window.

--c

On Sun, Apr 20, 2008 at 2:45 PM, Richard Kurth
<richardkurth@centurytel.net> wrote:
> I have my login.php file that when I access the login fields they are in
> a small window width=400,height=250. When I click on submit I what it to
> close this window and open another full window with the web page that
> the script directs it to. But nomater what I do it opens it in the same
> window which is to small. Is there anyway to make it open the window up
> or close it and open another full window. I know PHP is server side and
> it does not have control of the client.
>
> Of course this does not work. Is there a way to do this in javascript or
> something else.
> $link = "http://www.domain.com/main.php target=\"_blank\"";
> header("Location:$link");
> ob_end_flush();
> exit;
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

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 08:09 PM.


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