Possible Duplicate:
Headers already sent by PHP
Passing PHP Variable From One Dynamic Page to Another
Will appreciate any help on this
Trying to pass on some PHP variables from one page to another .
On page one:
<?php
session_start();
$_SESSION['file'] = $file;
$_SESSION['linecount'] = $linecount;
$_SESSION['priceperpost'] = $priceperpost;
$_SESSION['totalcost'] = $totalcost;
?>
And then on page two:
<?php
session_start();
$file = $_SESSION['file'];
$linecount = $_SESSION['linecount'];
$priceperpost = $_SESSION['priceperpost'];
$totalcost = $_SESSION['totalcost'];
?>
This is on a WordPress site and I keep getting an error which says:
"session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at...
Any help would be appreciated.