twister
Howdy
Hello-
I'm having an issue with PHP. Everything was working fine until i tried to set a cookie. Now when i set a cookie php always says "Cannot add header information - headers already sent in header.php"
Well the only other PHP code i have on this page is two includes, one for header.php and one for footer.php, and some more after the cookie information.
header.php also has a simple if statement in it, which in this case is returning false and nothing is happening.
Now if i remove the header include, the error still happens and my cookie won't get set. Any clue on what could be wrong? I've decided it hates my cookie as it never gets set.
Another, related question, is how can i save a bunch of information for later use without using a cookie? I was sending it via post except this time i cant. Kinda hard to explain. And if i use GET the URL would be REALLY long and then not safe from tampering with the values. So i've heard about Globals but I don't know how to use them.
If anyone can help that'd be great.
I'm having an issue with PHP. Everything was working fine until i tried to set a cookie. Now when i set a cookie php always says "Cannot add header information - headers already sent in header.php"
Well the only other PHP code i have on this page is two includes, one for header.php and one for footer.php, and some more after the cookie information.
header.php also has a simple if statement in it, which in this case is returning false and nothing is happening.
Now if i remove the header include, the error still happens and my cookie won't get set. Any clue on what could be wrong? I've decided it hates my cookie as it never gets set.
Another, related question, is how can i save a bunch of information for later use without using a cookie? I was sending it via post except this time i cant. Kinda hard to explain. And if i use GET the URL would be REALLY long and then not safe from tampering with the values. So i've heard about Globals but I don't know how to use them.
If anyone can help that'd be great.