How to redirect with java script
<?php
require('config.php');
SESSION_start();
print_r($_SESSION);
if(empty($_SESSION['username']) )
{
echo "hello";
echo "<script> window.location = 'http://gm.roomonrentjodhpur.com/admin/login.php';</script>";
}
require('config.php');
SESSION_start();
print_r($_SESSION);
if(empty($_SESSION['username']) )
{
echo "hello";
echo "<script> window.location = 'http://gm.roomonrentjodhpur.com/admin/login.php';</script>";
}
?>
Comments
Post a Comment