Advertisement
Guest User

Untitled

a guest
Dec 9th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. ERROR:
  2. Warning: Cannot modify header information - headers already sent by (output started at /storage/ssd4/241/3939241/public_html/post.php:4) in /storage/ssd4/241/3939241/public_html/post.php on line 9
  3.  
  4. CODE:
  5. <?php
  6. $user = $_POST['nm'];
  7. $password = $_POST['pw'];
  8. echo $user;
  9. echo $password;
  10.  
  11. if ($user == 'username') {
  12. if ($password == 'password'){
  13. header ('Location: home.html');
  14. }
  15. else{
  16. echo 'Wrong!';
  17. }
  18. }
  19. else{
  20. echo 'Wrong!';
  21. }
  22.  
  23. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement