breeze351
asked on
Problem with if statement not working correctly.
I have some code that looks like this:
work = NNN
Warning: Cannot modify header information - headers already sent by (output started at /home/langsyst/public_html /seabreeze software/R etail/Spac e_Contact_ Update.php :27) in /home/langsyst/public_html /seabreeze software/R etail/Spac e_Contact_ Update.php on line 144
Let me know if you need more info.
$work = $_SESSION['Add_Name_1'].$_SESSION['Add_Name_2'].$_SESSION['Add_Name_3'];
echo "work = ".$work;
if ($work == "NNN")
{
Header ("Location:Update_Space.php");
exit;
}
I've checked the vars, if one is checked it works. But if none of the vars are checked , I get the following error:work = NNN
Warning: Cannot modify header information - headers already sent by (output started at /home/langsyst/public_html
Let me know if you need more info.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Found it, It wasn't the code but where the <head> was located
Open in new window