I've been trying to figure this one out and everything on the web
points to "whitespace" being sent to the browser before the call to
session_start(); So here's my problem. I have two PHP pages,
searchresults.php and shoppingcart.php. The searchresults.php page
doesn't have any problems and runs fine. The shoppingcart.php page is
where I get the "Cannot send..." error. However, I created the
shoppingcart.php FROM the searchresults.php page which is, as I said
before, working without error. Both pages have calls to "echo" so I
just don't get why I'm having an issue with the shoppingcart.php page
when the page it was created from (searchresults.php) doesn't have any
problems.
The tops of the pages are identical as shown below:
searchresults.php
====
<?php session_start();?>
<!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=utf-8" />
<link href="css/movieposters.css" rel="stylesheet" type="text/css" />
<link href="css/navigation.css" rel="stylesheet" type="text/css" />
<script type="text/JavaScript" src="js/validation.js"></script>
<title>Buy Movie Posters</title>
</head>
<body>
====shoppingcart.php
====
<?php session_start();?>
<!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=utf-8" />
<link href="css/movieposters.css" rel="stylesheet" type="text/css" />
<link href="css/navigation.css" rel="stylesheet" type="text/css" />
<script type="text/JavaScript" src="js/validation.js"></script>
<title>Buy Movie Posters</title>
</head>
<body>
====Thanks in advance for any help you can offer.
Cheers,
Mike
Edited by Jordan, 06 May 2008 - 01:26 PM.
Added code tags


Sign In
Create Account

Back to top









