In article <f8**************************@posting.google.com >,
in**@gadnet.com enlightened us with...
I have set up two pages. The first writes a cookie and the second
checks for its exsistence. If you follow the link to
http://www.gadnet.com/test1.htm?test it will write a cookie named
gadmcookie. This works fine. But when you go to
http://www.gadnet.com/test.htm to check for the existence of the
cookie, it is unable to find it. Any ideas what I am doing wrong?
I think you wanted this
if (GetCookie('gadmcookie') == null) {
document.writeln('exists');
}
else {
document.writeln('does not exist');
}
To be
if (GetCookie('gadmcookie') != null) {
document.writeln('exists');
}
else {
document.writeln('does not exist');
}
Assuming GetCookie returns the cookie if it exists and null if it
doesn't, which is what it looked like.
-------------------------------------------------
~kaeli~
All I ask for is the chance to prove that money
cannot make me happy.
http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace
-------------------------------------------------