The code is below. Basically, 2 cookies SHOULD be set when 2 querystrings are used. However, only ONE of them (name) seems to stay put.
So if I go to my page 'main.php?name=Jim&mainquestion="test" I should
be able to just go to main.php, without the querystrings, and see values for BOTH cookies.
But only the cookie for NAME works. I check my browser (firefox) and the cookie for 'mainproblem' just disappears
Very weird:
Code:$name=$_REQUEST["name"]; $mainproblem=$_REQUEST["mainquestion"]; If($name<>"") { setcookie("name",$name, time()+312536000); setcookie("mainproblem",$mainproblem, time()+312536000); } $namecookie=$_COOKIE["name"]; $prob=$_COOKIE["mainproblem"]; echo $namecookie; // THIS ONE SHOWS echo "<P>$prob"; // THIS ONE IS NOW BLANK/DELETED.





Bookmarks