Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. <?php
  2. $name = $_POST['name'];
  3. $password = $_POST['pass'];
  4.  
  5. if($name !="echo cant see" && $password !="echo cant see"){
  6. echo'
  7. <form action= " " method="POST">
  8. Username:<br><input type="text" name="name"><br>
  9. Password<br><input type = "password" name = "pass"><br>
  10. <input type = "submit" value = "Log in">';
  11. }
  12.  
  13.  
  14. if(isset($name) && isset($password) && !empty($name) && !empty($password)){
  15.  
  16. if($_POST['name']=="ECHO CANT SEE" && $_POST['pass'] =="ECHO CANT SEE"){
  17.  
  18. echo 'SITE CODING HERE';
  19. }
  20. if($_POST['name']!="ECHO CANT SEE" && $_POST['pass'] !="ECHO CANT SEE"){
  21. echo '<br>Please enter the correct username and pass';
  22. }
  23. }else {
  24. echo'<br> Enter the username and password.';
  25. }
  26. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement