Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. <?php
  2. if(isset($_POST['submit']))
  3. {
  4. $user= $_POST['user'];
  5. $pass= $_POST['pass'];
  6.  
  7. setcookie("user",$user,time()+3600);
  8. setcookie("Password",$pass,time()+3600);
  9.  
  10. }
  11.  
  12.  
  13.  
  14. ?>
  15.  
  16.  
  17. <! DOCTYPE HTML>
  18. <html lang="pl">
  19. <head>
  20.  
  21. <meta charset="utf-8"/>
  22.  
  23.  
  24. </head>
  25. <body>
  26.  
  27. <form method="POST">
  28.  
  29. Podaj Nazwe:<br/>
  30. <input type="text" name="user" /><br/>
  31.  
  32. Podaj haslo:<br/>
  33. <input type="text" name="pass" />
  34. <br/>
  35. <input type="submit" name="submit" value="Ciacho" />
  36.  
  37. </form>
  38.  
  39. </body>
  40. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement