Guest User

Untitled

a guest
Dec 17th, 2018
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. <?php
  2. if(isset($_POST["bus"]))
  3. {
  4. $validUser=$_POST["username"]=="admin" && $_POST["password"]=="password";
  5.  
  6. }
  7. ?>
  8. <html>
  9. <head>
  10. <title>My Web App</title>
  11. </head>
  12. <body>
  13. <form method="post" action="hello.php">
  14. <center>
  15. <h1>Welcome To My Php App</h1><br>
  16. Username : <input type="textbox" name="username"><br>
  17. Password : <input type="password" name="password"><br>
  18. <input type="button" value="Submit" name="submit">
  19. <input type="button" value="cancel" name="cancel">
  20. </center>
  21. </form>
  22. </body>
  23. </html>
Add Comment
Please, Sign In to add comment