The xampp server does not work with the following code
if(isset($_SESSION['username'])){
header("Location:Home.php");
exit();
}else{ ?> hi dear<? } ?>
but the code works on appserv In Server Xampp I have a problem with the appearance of pages not formatted like this and i have to do this code such that
if(isset($_SESSION['username'])){
header("Location:Home.php");
exit();
}else{ echo" hi dear"; } ?>
what is the solve?