Advertisement
Guest User

Untitled

a guest
Dec 9th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. <?php
  2. error_reporting(E_ALL);
  3. $user = $_POST['nm'];
  4. $password = $_POST['pw'];
  5. if ($user == 'username') {
  6. if ($password == 'password'){
  7. header ('Location: home.html');
  8. }
  9. else{
  10. echo 'Wrong!';
  11. }
  12. }
  13. else{
  14. echo 'Wrong!';
  15. }
  16.  
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement