Is there any redirect possibility to open login.php as a popup window?
<?PHP
require_once("./include/membersite_config.php");
if(!$fgmembersite->CheckLogin())
{
$fgmembersite->RedirectToURL("login.php");
exit;
}
?>
Is there any redirect possibility to open login.php as a popup window?
<?PHP
require_once("./include/membersite_config.php");
if(!$fgmembersite->CheckLogin())
{
$fgmembersite->RedirectToURL("login.php");
exit;
}
?>
It is not possible in php. You can try:
<a href="login.php" target="_blank">login</a>
Or in javascript:
<script type="text/javascript" language="Javascript">window.open('login.php');</script>
However this will most probably get blocked by popup blockers.
The best thing to do, would be via JavaScript + HTML.
However, if you really want to do it this way, you can always write the javascript into the page using PHP.
echo "<script>window.open('http://www.yourwebsite.com/popup.php')</script>";
But look at other more standard options first.
More info on the window.open method here.