Date: 08/15/00
- Next message: Paulson, Joseph V. \: "[PHP] Cookie question"
- Previous message: Joao Prado Maia: "Re: [PHP] Installing PHP4 without GD"
- In reply to: Boaz Yahav: "[PHP] cookie support differences between NN and IE"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
hi,
try
<?php
//Checking for Cookie Support
If(!IsSet($CookieTest)) {
If($CookieSecondRun == 1) {
echo"Your browser does not support cookies.<BR>You will not
be able to log in.";
exit();
}Else {
SetCookie("CookieTest",1,0,"/","$cookiedomain");
echo"<html><head><meta http-equiv=\"refresh\"
content=\"0;URL=login.php3?from=$from&CookieSecondRun=1\"></head></html>";
exit();
}
}else {
echo"<html><head></head><body>aaa</body></html>";
}
?>
your problem is that you dont have any data when the cookie is set already
say you've got no else clause
and nn dont like this ie dot care about that and generates an empty
html-file for you
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/_/ viva technologies
_/ gstrein andreas
"Always listen to the experts; they'll tell you what can't be done and why.
Then do it."
- Robert A. Heinlein
does anyone have any idea why this code works with IE and not with NN?
//Checking for Cookie Support
If(!IsSet($CookieTest)) {
If($CookieSecondRun == 1) {
echo"Your browser does not support cookies.<BR>You will not
be able to log in.";
exit();
}Else {
SetCookie("CookieTest",1,0,"/","$cookiedomain");
echo"<meta http-equiv=refresh content=\"1;
URL=login.php3?from=$from&CookieSecondRun=1\">";
exit();
}
}
berber
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Paulson, Joseph V. \: "[PHP] Cookie question"
- Previous message: Joao Prado Maia: "Re: [PHP] Installing PHP4 without GD"
- In reply to: Boaz Yahav: "[PHP] cookie support differences between NN and IE"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

