session_cache_limiter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hello,
thank you for your time...
i am getting a login name to print now on the new account page but i get the following error message:
Warning: Cannot send session cache limiter - headers already sent (output started at /users/infoserv/web/register/ca/new_account.php:6) in /users/infoserv/web/register/ca/new_account.php on line 76
logname=tad@optixcom.com

my code is as follows:
<?
session_start(); if (@$auth != "yes")
{
header("Location: login.php");
exit();
} include("config.php");
echo "logname=$logname<br>";
$sql = "SELECT first_name,last_name FROM accounts WHERE email='$logname'";
$result = mysql_query($sql)
or die("Couldn't execute query 1.");
$row = mysql_fetch_array($result,MYSQL_ASSOC);
extract($row);
echo "
<head><title>New Account Welcome</title></head>
<h2 align='center' style='margin-top: .7in'>
Welcome $first_name $last_name</h2>\n";
?>


without the below:

session_start(); if (@$auth != "yes")
{
header("Location: login.php");
exit();
}

i can not get the new account name to print from the form just submitted.

any ideas are greatly appreciated and thank you again. addison
--
Addison Ellis
small independent publishing co.
114 B 29th Avenue North
Nashville, TN 37203
(615) 321-1791
addison@bellsouth.net
info@smipco.com
subsidiaries of small independent publishing co.
info@gloabaldog.com
info@momandpocentral.com

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux