why would this not work in internet explorer?? its not saving the cookiePHP Code:if(!$_COOKIE['passer'] || $_COOKIE['passer']!='blo'){
if(!$_POST['submit']){
echo "<form action=ROMDB.php method=post><input class='button' name='pass' type='password'><input class='button' type='submit' name='submit' value='Submit Password'></form>";
exit;
}else{
if($_POST['pass']!='blo'){
echo "Incorrect pass! <a href='ROMDB.php'>Go back</a>";
exit;
}else{
setcookie ("passer", "", time() - 3600);
setcookie("passer","blo",time()+60*60*24*30,"/",0);
}
}
first i expire the cookie then remake it...
it will submit first and you can see the rest of the page, but if you hit refresh or navigate back its like you never inserted a password in the first place...




Reply With Quote


Bookmarks