session_start()

sosos

Registered
моля ви кажете ми къде ми е грешката

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /www/110mb.com/t/a/n/i/_/_/_/_/tani/htdocs/page/login/member.php:10) in /www/110mb.com/t/a/n/i/_/_/_/_/tani/htdocs/page/login/member.php on line 14

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /www/110mb.com/t/a/n/i/_/_/_/_/tani/htdocs/page/login/member.php:10) in /www/110mb.com/t/a/n/i/_/_/_/_/tani/htdocs/page/login/member.php on line 14
 
това ми е файла къде да го сложа



<html><head>
<title>add</title>

<link rel="stylesheet" type="text/css" href="stil.css">
<meta content="text/html; charset=windows-1251"></head>
<body " background="main_right_down.jpg" style="background-attachment: fixed" text="blue">
<table align="center" cellpadding="0" cellspacing="20"><tr><td align="center"><h1></h1>
</td></tr>
<tr ><td >
<?php

// include function files for this application
require_once('bookmark_fns.php');
session_start();

//create short variable names
$username = $HTTP_POST_VARS['username'];
$passwd = $HTTP_POST_VARS['passwd'];

if ($username && $passwd)
// they have just tried logging in
{
if (login($username, $passwd))
{
// if they are in the database register the user id
$HTTP_SESSION_VARS['valid_user'] = $username;
}
else
{
// unsuccessful login

echo 'Не сте регистриран.
Трябва да сте регистрирани.';
do_html_url('login.php', 'Влез');
do_html_footer();
exit;
}
}

check_valid_user();
// get the bookmarks this user has saved
if ($url_array = get_user_urls($HTTP_SESSION_VARS['valid_user']));
// give menu of options
display_user_menu();

?>
<br><br><br>
<table align="center"><tr><td align="center"><h1></h1></td></tr>
<tr><td>



<form action="insert_book.php" method="post">
<table border="0">

<tr>
<td>населено място</td>
<td> <input type="text" name="author" maxlength="30" size="30"><br /></td>
</tr>
<tr>
<td>църква/манастир</td>
<td> <input type="text" name="title" maxlength="30" size="30"><br></td>
</tr>
<tr>
<td>историческа забележителност</td>
<td><input type="text" name="isbn" maxlength="30" size="30"><br /></td>
</tr>
<tr>
<td>описание</td>
<td><textarea name="price" rows="4" cols="30" wrap"">Моля добавете информация</textarea><br /></td>
</tr>
<tr>
<td colspan="2"><input type="submit" value="ЗАПИШИ"></td>
</tr>
</table>
</form>
</td>
</tr><tr><td>
</td><tr>
<td>
<br> <br>
   Copyright © 2007 СОУ"Св.П.Хилендарски" гр.Хасково

</td>
</tr></table>
</body>

</html>
 
Казахати най отгоре



<?php session_start(); ?>
<html><head>
<title>add</title>

<link rel="stylesheet" type="text/css" href="stil.css">
<meta content="text/html; charset=windows-1251"></head>
<body " background="main_right_down.jpg" style="background-attachment: fixed" text="blue">
<table align="center" cellpadding="0" cellspacing="20"><tr><td align="center"><h1></h1>
</td></tr>
<tr ><td >
<?php

// include function files for this application
require_once('bookmark_fns.php');


//create short variable names
$username = $HTTP_POST_VARS['username'];
$passwd = $HTTP_POST_VARS['passwd'];

if ($username && $passwd)
// they have just tried logging in
{
if (login($username, $passwd))
{
// if they are in the database register the user id
$HTTP_SESSION_VARS['valid_user'] = $username;
}
else
{
// unsuccessful login

echo 'Не сте регистриран.
Трябва да сте регистрирани.';
do_html_url('login.php', 'Влез');
do_html_footer();
exit;
}
}

check_valid_user();
// get the bookmarks this user has saved
if ($url_array = get_user_urls($HTTP_SESSION_VARS['valid_user']));
// give menu of options
display_user_menu();

?>
<br><br><br>
<table align="center"><tr><td align="center"><h1></h1></td></tr>
<tr><td>



<form action="insert_book.php" method="post">
<table border="0">

<tr>
<td>населено място</td>
<td> <input type="text" name="author" maxlength="30" size="30"><br /></td>
</tr>
<tr>
<td>църква/манастир</td>
<td> <input type="text" name="title" maxlength="30" size="30"><br></td>
</tr>
<tr>
<td>историческа забележителност</td>
<td><input type="text" name="isbn" maxlength="30" size="30"><br /></td>
</tr>
<tr>
<td>описание</td>
<td><textarea name="price" rows="4" cols="30" wrap"">Моля добавете информация</textarea><br /></td>
</tr>
<tr>
<td colspan="2"><input type="submit" value="ЗАПИШИ"></td>
</tr>
</table>
</form>
</td>
</tr><tr><td>
</td><tr>
<td>
<br> <br>
   Copyright © 2007 СОУ"Св.П.Хилендарски" гр.Хасково

</td>
</tr></table>
</body>

</html>
 

Back
Горе