I have problem with html and php,so I created login page and all functions for login,but I want to put username in header (Like a facebook) and have problem.Username is hidden when I add php code. Everything work perfect,here is my HTML code. pocetna.html
<?php
session_start();
?>
<html>
<head>
    <title>
        weekta RolePlay | Pocetna
    </title>
    <link rel="stylesheet" href="style/styless.css">
    <link href="https://fonts.googleapis.com/css2?family=Jost&display=swap" rel="stylesheet">
</head>
<body>
<header>
            <a class="logo" href="/" style="text-decoration: none;color: #1260a8;font-size: 30px;font-family: 'Jost', sans-serif;"><p>weekta</p></a>
            <nav>
                <ul class="nav__links">
                    <li><a href="#">Services</a></li>
                    <li><a href="#">Projects</a></li>
                    <li><a href="#">About</a></li>
                    <li><a href="#"><span><?php echo( $_SESSION['korisnickoime'] );?></span></a></li>
                </ul>
            </nav>
            <a class="cta" href="index.html">Login</a>
            <p class="menu cta">Menu</p>
        </header>
        <div id="mobile__menu" class="overlay">
            <a class="close">×</a>
            <div class="overlay__content">
                <a href="#">Services</a>
                <a href="#">Projects</a>
                <a href="#">About</a>
            </div>
        </div>
        <script type="text/javascript" src="mobile.js"></script>
</body>
</html>
And here is login_process.php
<?php
$mysql_host="localhost";
$mysql_user="root";
$mysql_password="";
$mysql_db="weekta";
$conn = mysqli_connect($mysql_host,$mysql_user,$mysql_password);
mysqli_select_db($conn, 'weekta');
session_start();
if(isset($_POST['korisnickoime'])){
    $username=$_POST['korisnickoime'];
    $password=$_POST['sifrajedan'];
    $sql="SELECT * FROM loginform where korisnickoime='".$username."'AND sifrajedan='".$password."' limit 1";
    $result = mysqli_query($conn,$sql);
    if(mysqli_num_rows($result)==1){
        header("Location:pocetna.html");
        echo " Dobodosao $username";
        exit();
    }
    else{
        echo " Pogresna lozinka.";
        exit();
    }
}
?>
Can someone help me?Thanks.
 
    