Guest User

Untitled

a guest
Feb 13th, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. <form action="main_menu.php" method="post" data-ajax="false">
  2. <label for="basic">Username:</label>
  3. <input type="text" name="username" id="usernameID" value="" />
  4.  
  5. <label for="basic">Password:</label>
  6. <input type="password" name="password" id="passwordID" value="" />
  7.  
  8. <div class="ui-block-b">
  9. <button type="submit" data-theme="a">Login</button>
  10. </div>
  11. </form>
  12.  
  13. Notice: Undefined index: username in D:xampphtdocsuls_webmain_menu.php on line 4
  14. Notice: Undefined index: password in D:xampphtdocsuls_webmain_menu.php on line 5
  15. Notice: Undefined variable: password in D:xampphtdocsuls_webmain_menu.php on line 6
  16.  
  17. require_once("db_connect.php");
  18.  
  19. $username = addslashes(htmlentities($_POST['username'], ENT_QUOTES));
  20. $pass = addslashes(htmlentities($_POST['password'], ENT_QUOTES));
  21. $sql = "SELECT * FROM tbl_application_form WHERE email ='".$username."' AND is_approved ='1' AND passwd='".$pass."'";
Add Comment
Please, Sign In to add comment