header script: cannot use target="_blank"

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

 



Hello,

 

I cannot open a new window from a popup when a user logs into their account.
How would I go about adding target="_blank"  after successful login.

 

Your help would be greatly appreciated.

Best Regards,
Martin

 

 

 

<?php

error_reporting(E_ALL ^ E_NOTICE);

//Here we check if any field was missed / left empty and act accordingly

if ('domain' && $_POST['username'] && $_POST['pass'] && !($_GET['failed'] ==
"1"))

{

    switch ($login_option)

    {

        case "2095":    $port = "2095";

                $protocol = "http://";;

                break;

        case "2096":    $port = "2096";

                $protocol = "https://";;

                break;

    }

            

    $redirectlocation =
$protocol.$_POST['domain'].":".$port."/login/?user=".$_POST['username']."&pa
ss=".$_POST['pass']."&failurl=".$_POST['failurl'];

     header ("Location: ".$redirectlocation);

}

else

{

    $error = 1;

    header ("Location: ".$_POST['failurl']);

}

?>

 

 

 

 

 


[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