I am using wampsever and it allows me to use php function to check if I am logged in but it is ignoring the tags inside of the html which calls a function, here is my code.
<?PHP
require_once("./include/membersite_config.php");
require_once("./include/fg_membersite.php");
if(!$fgmembersite->CheckLogin())
{
$fgmembersite->RedirectToURL("login.php");
exit;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
<title>Home page</title>
<link rel="STYLESHEET" type="text/css" href="style/fg_membersite.css">
</head>
<body>
<div class='h1'>
<div class="Top_Logo">
</div>
</div>
<div id='fg_membersite_content'>
<h2>Home Page</h2>
Welcome back
<!-- This is what it ignores, but it uses the php above perfectly fine-->
<?= $fgmembersite->UserFullName(); ?>!
<p><a href='change-pwd.php'>Change password</a></p>
<p><a href='access-controlled.php'>A sample 'members-only' page</a></p>
<br><br><br>
<p><a href='logout.php'>Logout</a></p>
</div>
</body>
</html>