RE: [PHP] Am I blind? simple 15 line code producing error - SOLUTION FOUND! - tks
| From: | Paul | Date: | Mon, 04 Nov 2002 21:26:48 +0000 |
| Subject: | RE: [PHP] Am I blind? simple 15 line code producing error - SOLUTION FOUND! - tks | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-122701@lists.php.net to get a copy of this message | ||
To those of you that helped me with this problem I have spent time
eliminating lines of code.. the problem was in the following line:
if ($_SESSION["first_name"])
the line should be like this
if (ISSET($_SESSION["first_name"]))
Seems like ISSET made a difference in eliminating warning: Cannot add
header information. The code worked before but I guess it was broken
once Global Vars were turned off in the resent version of PHP
Thank you to all the replies
Paul