Hello All,
I have a page that passes a session variable to another page which is then used in an if/else statement. For some reason itsa giving me error messages, and I'm not sure whats up with it.
Heres the page that creates the variable
<?php session_start(); // start session $_SESSION['name'] = 'sport'; ?>and heres the page with the if else statment :
and finally - here are the error messages that I am getting :
As you've guessed, I'm pretty new to this so I have probably missed something basic - any ideas?
Cheers
Fogo
One of two things are happening.. but to correct the error you can:
output_buffering = Off
Toggle this to produce the error.
Most liekly you are using an include to like header.php" that is outputing the session data already.
You cannot resend the header infomation once it has been sent already.