Dlaczego jak raz wpisze źle hasło, to już ciągle wywala mnie na blad.html questionmark.gif
  1. <?php
  2. if(!($PHP_AUTH_USER)):
  3.  Header("WWW-authenticate: basic realm=Restricted Area");
  4.  Header("HTTP/1.0 401 Unauthorized");
  5.  echo "";
  6.  exit;
  7. else:
  8. if (($PHP_AUTH_USER)!=("login")): 
  9. echo "<meta http-equiv="refresh"content="0; url=blad.html">"; 
  10. exit; 
  11. endif;
  12. if (($PHP_AUTH_PW)!=("password")): 
  13. echo "<meta http-equiv="refresh"content="0; url=blad.html">"; 
  14. exit; 
  15. endif;
  16. endif;
  17. ?>