Jump to content

PHP Header problem


simon1901

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/281797-php-header-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.