Значи дава ми ето тази грешка, когато се опитам да се логна
header.php
и
login.php
с червено са редовете на грешките!
Warning: Cannot modify header information - headers already sent by (output started at D:\Dimitar\xampp\htdocs\hrana\header.php:12) in D:\Dimitar\xampp\htdocs\hrana\login.php on line 11
header.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<title>sssss </title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<table width="752" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<img src="images/p1.jpg" alt="" width="752" height="247"></td>
</tr>
<tr>
<td class="menutd"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="6"><img src="images/ml.gif" alt="" width="6" height="38"></td>
<td><table border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="menu"><a href="index.php">sss</a></td>
<td width="5"><img src="images/ms.gif" alt="" width="5" height="38"></td>
<td class="menu"><a href="#">sss</a></td>
<td width="5"><img src="images/ms.gif" alt="" width="5" height="38"></td>
<td class="menu"><a href="search_form.php">sss</a></td>
<td width="5"><img src="images/ms.gif" alt="" width="5" height="38"></td>
<td class="menu"><a href="kontakt.php">sss</a></td>
</tr>
</table></td>
<td width="6"><img src="images/mr.gif" alt="" width="6" height="38"></td>
</tr>
</table></td>
</tr>
<tr>
<td class="cbg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="203" valign="top">
<div class="lmenu"><div class="l_title">sss</div>
<?php include('loginform.php'); ?>
<img src="images/lbot.gif" alt=""></div></td>
<td class="body_txt">
<script type="text/javascript">
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<br><br>
и
login.php
<?php
include('include_fns.php');
include('header.php');
$username = $HTTP_POST_VARS['username'];
$password = $HTTP_POST_VARS['password'];
if (login($username, $password)) {
$HTTP_SESSION_VARS['auth_user'] = $username;
header('Location: '.$HTTP_SERVER_VARS['HTTP_REFERER']);
}
else {
print 'Въведените Име или Парола са грешни!';
include('footer.php');
exit;
}
?>
с червено са редовете на грешките!