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, ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 > > |
![]() |
| Thread Tools | |
| Display Modes | |
|
|