claire Posted June 19, 2007 Share Posted June 19, 2007 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/minipla/public_html/add.php: in /home/minipla/public_html/add.php on line 34 this is the page <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Home</title> <link href="main.css" rel="stylesheet" type="text/css" /> <style type="text/css"> <!--use to move the whole content--> body { margin-top: 0px; margin-bottom:20px; } #box2 #prodlist .proddiv { } .style1 {color: #000000} .style3 {color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; } .style5 {font-family: Geneva, Arial, Helvetica, sans-serif} .style6 {font-family: Verdana, Arial, Helvetica, sans-serif} a { color: #666666; } .style7 {color: #333333} </style> </head> <body><!--start main div - this centers content on the page--> <div id="main"> <!--start header - contains company logo--> <!--end header--> <?php session_id(); session_start(); //connect to the database require_once('connection1.php'); //declare variables and assign them values from form echo "<br />"; $qty =$_POST['qty']; $prodnum =$_POST['prodnum']; //assign the value of the session id to $sess $sess =session_id(); /* add new item to the temporary cart table of the database. This is the table which is queried when you view the contents of your cart */ $query = "INSERT INTO carttemp (sess, quan, prodnum) VALUES ('$sess','$qty', '$prodnum')"; $results = mysql_query($query) or die(mysql_error()); //include the cart.php file in this page include("cart.php"); ?> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/56199-cannot-send-session-cache-limiter/ Share on other sites More sharing options...
tr33b1rd Posted June 19, 2007 Share Posted June 19, 2007 Move session_id and session_start to the very top of your script. <?php session_id(); session_start(); ?> <!DOCTYPE html PUBLIC .... Quote Link to comment https://forums.phpfreaks.com/topic/56199-cannot-send-session-cache-limiter/#findComment-277627 Share on other sites More sharing options...
claire Posted June 19, 2007 Author Share Posted June 19, 2007 did that and still have the same problem...any other sustentions .... Quote Link to comment https://forums.phpfreaks.com/topic/56199-cannot-send-session-cache-limiter/#findComment-277637 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.