login  Naam:   Wachtwoord: 
Registreer je!
 Forum

fout login script (Parse error)

Offline omerdian - 11/11/2004 15:19 (laatste wijziging 11/11/2004 19:15)
Avatar van omerdianHTML interesse Warning: Cannot modify header information - headers already sent by (output started at /home/cybertec/public_html/movie/inloggen/config.php:5) in /home/cybertec/public_html/movie/inloggen/login.php on line 14

  1. <?php
  2.  
  3. include "config.php";
  4. if(!empty($_POST)) {
  5. $_SESSION["username"]=$_POST["username"];
  6. $_SESSION["password"]=$_POST["password"];
  7.  
  8. if( $_SESSION['username'] != "$username" || $_SESSION['password'] != "$password") {
  9.  
  10. die("Je hebt een verkeerde gebruikersnaam of wachtwoord ingevoerd!<br> <a href=\"login.php\">Terug</a>");
  11.  
  12. }else{
  13. header("Location: geheim.php");
  14. }
  15. }else{
  16. ?>
  17. <html>
  18. <body>
  19. <form method=post action="<? echo($_SERVER["PHP_SELF"]);?>">
  20. Gebruikersnaam: <input name=username><br>
  21. Wachtwoord: <input name=password type=password><br>
  22. <input type=submit value="Inloggen!">
  23. </form>
  24. </body>
  25. </html>
  26. <?php
  27. }
  28. ?>


Weet er iemand wat er fout is ?:|

0 antwoorden

Gesponsorde links
Er zijn nog geen reacties op dit bericht.
Dit onderwerp is gesloten.
Actieve forumberichten
© 2002-2025 Sitemasters.be - Regels - Laadtijd: 0.166s