Advertisement
Guest User

Untitled

a guest
Jun 13th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. $('#loginsubmit').click(function() {
  2. var username = $('#usernamelogin').val();
  3. var password = $('#passwordlogin').val();
  4.  
  5. if(username == "") {
  6. return false;
  7. }
  8. if(password == "") {
  9. return false;
  10. }
  11. $.ajax({
  12. url: "loginprocess.php",
  13. type: "post",
  14. cache: false,
  15. data: "username=" . username . "&password=" . password,
  16. success: function(html) {
  17. if(html == '1') {
  18. alert("asd");
  19. }
  20. }
  21. });
  22.  
  23.  
  24. logintitle();
  25. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement