Advertisement
Guest User

Untitled

a guest
Dec 14th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. <form method="post">
  2. Username:
  3. <input type="text" name="nicknameee" placeholder="Username">
  4. <br>
  5. Password:
  6. <input type="password" name="passwordd" placeholder="Password">
  7. <br>
  8. <input type="submit" name="Submit2" value="submit">
  9. <br>
  10. <?php
  11. if (isset($_POST['Submit2'])) {
  12.  
  13. $result1 = $conn->query("SELECT nicknamee, parola FROM Users2 WHERE nicknamee='$_POST[nicknameee]' AND parola='$_POST[passwordd]' ");
  14.  
  15. if (mysql_num_rows($result1)>0){
  16. echo "We are connected";
  17. }
  18. else{
  19. echo "INCORRECT";
  20. }
  21.  
  22. }
  23. ?>
  24. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement