Advertisement
Guest User

PHP

a guest
Mar 6th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4.  
  5. if( isset($_POST['login'] ) ){
  6.  
  7. $username = $_POST[ 'username' ];
  8. $password = $_POST[ 'password' ];
  9. }
  10.  
  11.  
  12. if ( $username == 'abc' && $password == '123'){
  13.  
  14. echo "Kaj Korche ";
  15. }
  16.  
  17.  
  18. ?>
  19.  
  20. <!DOCTYPE html>
  21. <html lang="en">
  22. <head>
  23. <meta charset="UTF-8">
  24. <title>Welcome My Facebook</title>
  25. </head>
  26. <body>
  27.  
  28. <form action="" method ="POST">
  29.  
  30. <table>
  31. <tr>
  32. <td><label for="username">Username</label></td>
  33. <td><input type="text" name="usernmae" id="username" ></td>
  34.  
  35. </tr>
  36. <tr>
  37. <td><label for="password">Password</label></td>
  38. <td><input type="password" name="password" id="password"></td>
  39. </tr>
  40. <tr>
  41. <td></td>
  42. <td><input type="submit" value ="login"></td>
  43. </tr>
  44. </table>
  45.  
  46. </form>
  47. </body>
  48. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement