Weird "?>" being displayed
<p>I have the following navigation bar script:</p>

<pre><code>&lt;?php session_start();
require('includepath.inc.php');
require($include_path.'loginsysfunc.inc.php');
$current_page = $_SERVER['REQUEST_URI'];
?&gt;

&lt;div class="navbar"&gt;
&lt;img class="navlogo" src="logo.png"&gt;
&lt;div class="navbutton"&gt;&lt;a href="index.php"&gt;Home&lt;/a&gt;&lt;/div&gt;
&lt;div class="navbutton"&gt;&lt;a href="about.php"&gt;About&lt;/a&gt;&lt;/div&gt;
&lt;div class="navbutton"&gt;&lt;a href="donate.php"&gt;Donate&lt;/a&gt;&lt;/div&gt;
&lt;?php
if (loggedIn()){
    ?&gt;
&lt;div class="navusername"&gt;&lt;a href="profile.php?user=&lt;?php echo $_SESSION['username'];?&gt;"&gt;&lt;?php echo $_SESSION['username']; ?&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="navtoolsettings"&gt;&lt;a href="settings.php"&gt;Settings&lt;/a&gt;&lt;/div&gt;
&lt;div class="navtoollogout"&gt;&lt;a href="logout.php"&gt;Log out&lt;/a&gt;
&lt;?php
} elseif ($current_page == '/login.php') {
    ?&gt;
&lt;div class="navregister"&gt;&lt;a href="register.php"&gt;Register&lt;/a&gt;&lt;/div&gt;
&lt;?php
} else {
    ?&gt;
&lt;div class="navusername"&gt;&lt;a href="login.php"&gt;Log in&lt;/a&gt;&lt;/div&gt;
&lt;?php
}
?&gt;
&lt;/div&gt;
</code></pre>

<p>For some reason, a strange "?>" <a href="http://i.imgur.com/njpg8.jpg" rel="nofollow">is being displayed</a>. I am super confused, so please help.</p>

<p>Here is includepath.inc.php (the only I reason it's there is because I am on a shared host, and I don't want to type '/home/bigdumbhash/public_html/include' everytime. But, here it is:</p>

<pre><code> &lt;?php
 $include_path = '/home/a6595899/public_html/include/';
 ?&gt;
</code></pre>

<p>Here is loginsysfunc.inc.php. These are functions that go with my login system to save time:</p>

<pre><code>&lt;?php
function valUser() {
session_regenerate_id();
$_SESSION['valid'] = true;
$_SESSION['username'] = $userid;

echo '&lt;meta http-equiv="refresh" content="0;URL=\'index.php\'"&gt;';
}

function loggedIn()
{
if($_SESSION['valid'] == true) {
    return true;
} else {
    return false;
}
}

function createSalt() {
$string = $string = md5(uniqid(rand(), true));
return substr($string, 0, 3);
}

function logout()
{
$_SESSION = array();
session_destroy();
echo '&lt;meta http-equiv="refresh" content="0;URL=\'index.php\'"&gt;';
}

?&gt;
</code></pre>

<p>Here is the actual HTML of the page:</p>

<pre><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;link href="style.css" rel="stylesheet" type="text/css"&gt;
&lt;title&gt;
Log in
&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;div class="navbar"&gt;
&lt;img class="navlogo" src="logo.png"&gt;
&lt;div class="navbutton"&gt;&lt;a href="index.php"&gt;Home&lt;/a&gt;&lt;/div&gt;
&lt;div class="navbutton"&gt;&lt;a href="about.php"&gt;About&lt;/a&gt;&lt;/div&gt;
&lt;div class="navbutton"&gt;&lt;a href="donate.php"&gt;Donate&lt;/a&gt;&lt;/div&gt;
    &lt;div class="navregister"&gt;&lt;a href="register.php"&gt;Register&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;    ?&gt;
    &lt;div class="loginbox"&gt;
    &lt;h1&gt;Log in&lt;/h1&gt;
    &lt;form action="logingo.php" method="POST"&gt;
   &lt;input class="userpass" type="text" name="username" value="Username" onFocus="this.value='';"&gt;
    &lt;br&gt;
    &lt;input class="userpass" type="password" name="password" value="Password" onFocus="this.value='';"&gt;
        &lt;br&gt;
    &lt;input class="loginbutton" type="submit" value="Log in!"&gt;
        &lt;/form&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
