hi i am doing a web and after i check if a session is set for see if is loged or not the body is not working of the html, the code:
<?php
session_start();
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
if( !isset($_SESSION["username"]) ){
echo "<p id='errors'>Por favor, loguese, si no se redirecciona haz click <a href='log.php'>aqui</a></p>";
exit();
}else{
exit();
};
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Login</title>
<link rel="stylesheet" href="custom.css">
</head>
<body>
test
</body>
</html>
as you can see the word "test" should be on the body but in the web there isnt what can i do ?