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']);
}
?>