Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8209207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T09:38:28+00:00 2026-06-07T09:38:28+00:00

I have the following navigation bar script: <?php session_start(); require(‘includepath.inc.php’); require($include_path.’loginsysfunc.inc.php’); $current_page = $_SERVER[‘REQUEST_URI’];

  • 0

I have the following navigation bar script:

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

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

For some reason, a strange “?>” is being displayed. I am super confused, so please help.

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:

 <?php
 $include_path = '/home/a6595899/public_html/include/';
 ?>

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

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

echo '<meta http-equiv="refresh" content="0;URL=\'index.php\'">';
}

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 '<meta http-equiv="refresh" content="0;URL=\'index.php\'">';
}

?>

Here is the actual HTML of the page:

<!DOCTYPE html>
<html>
<head>
<link href="style.css" rel="stylesheet" type="text/css">
<title>
Log in
</title>
</head>
<body>

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

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T09:38:30+00:00Added an answer on June 7, 2026 at 9:38 am

    According to the HTML output you posted, the problem seems to be somewhere in the file that displays <div class="loginbox"> (before that).
    Have a look to the contents of that file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have the following CSS in place to display a horizontal navigation bar
I have made a navigation horizontal bar, but I seem to have a following
Basically, I am building a horizontal navigation bar. I have following markup: <ui:style src=../common.css
I have applied following code to my application to change the navigation bar image.
I want to develop the following application: on top I have a navigation bar,
In order to implement a navigation bar ala Facebook I have the following layout
I have write following code to make a navigation bar following demo . <ul
I have the following in the mainwindow.xib Navigation Controller List item Tab bar controller
On the following website, www.josecvega.com , I have a navigation bar with years that
I have a simple black navigation bar with following button When the button is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.