Jump to content

simon1901

New Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by simon1901

  1. 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.post-165193-0-42042100-1378157629_thumb.png

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.