Advertisement
Guest User

Untitled

a guest
Dec 15th, 2016
509
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. <?php
  2. session_start(); $username = $password = $userError = $passError = '';
  3. if(isset($_POST['sub'])){
  4. $username = $_POST['username']; $password = $_POST['password'];
  5.  
  6. if($username !== 'Bobo' || $password !=="123")
  7. echo "gresit" ;
  8. else echo "corect";
  9.  
  10. }
  11.  
  12. echo "<html>
  13. <body>
  14. <form name='input' action='{$_SERVER['PHP_SELF']}' method='post'>
  15. <input type='text' value='$username' id='username' name='username' />
  16. <input type='password' value='$password' id='password' name='password' />
  17. <input type='submit' value='Home' name='sub' />
  18. </form>
  19. </body>
  20. </html>";
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement