Guest User

Untitled

a guest
Aug 1st, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. <?php
  2. if(isset($_POST["user"]) && isset($_POST["pass"])){
  3. $user="Halux";
  4. $pass="test";
  5.  
  6. if ($user==$_POST["user"] && $pass==$_POST["pass"]){
  7. setcookie("login", "test", time()+3600, "/");
  8. header("Location: anmeldung.php");
  9. }else{
  10. header("Location: anmeldung.php?f=1");
  11.  
  12. }
  13.  
  14.  
  15. }else{
  16. header("Location: anmeldung.php?f=1");
  17. }
  18.  
  19.  
  20.  
  21. ?>
  22.  
  23. <html>
  24. <body>
  25.  
  26.  
  27.  
  28.  
  29. </body>
  30. </html>
Add Comment
Please, Sign In to add comment