Advertisement
Guest User

Untitled

a guest
Jul 11th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. <html>
  2. <head></head>
  3.  
  4. <body>
  5. <form action="tutorial_02.php" method="POST">
  6. Username: <input type=text name=user><br>
  7. Password: <input type=text name=password><br>
  8. <input type=submit value="Go!"><p>
  9. </form>
  10.  
  11.  
  12. <?php
  13. $user=$_POST['user'];
  14. $pass=$_POST['pass'];
  15.  
  16. if(($user=="myname")&&($pass=="mypass")) echo "access granted";
  17. else echo "access denied";
  18. ?>
  19.  
  20. </body>
  21. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement