I realy don´t understand whay it don´t working. It is some problem with header.
<?php
require_once 'includes/constanses.php';
session_start();
if (empty($_SESSION['brukernavn']) || empty($_SESSION['passord'])) {
header("Location: loginpage.php");
} elseif ($_SESSION['passord'] != BRUKERNAVN && $_SESSION['passord'] != PASSORD) {
header("Location: loginpage.php?status=Feil brukernavn eller passord");
} else {
?>
<?php
require_once 'includes/db123.php';
require_once 'includes/db_conn.php';
echo "4";
?>
<?php
echo "5";
if(isset($_GET['id'])){
echo "6";
$info = select_by_id($_GET['id'], $con);
header("Location:https://login.lodo.no//lodo.php?DB_NAME_LOGIN={$info['1']}&username={$info['2']}&password={$info['4']}&t=lib.login");
} else{
echo "7";
header('Location: index.php');
}
}}
require 'includes/footer.php';
?>
I error is the attach.