Guest User

Untitled

a guest
May 20th, 2018
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. jQuery.ajax({
  2.             url : 'includes/login.inc.php',
  3.             type : 'POST',
  4.             data : 'username=' + $('#user_name').val() + '&password=' + $('#password').val(),
  5.             success : function(response){
  6.                 if(response == 1){
  7.                     $("#login_form").fadeOut("normal");
  8.                     $("#msgbox").fadeTo(200,0.1,function(){
  9.                         $(this).html('Bezig met inloggen...').addClass('messageboxok').fadeTo(900,1,
  10.                         function(){
  11.                             window.setTimeout(document.location='logged_in.php', 1000);
  12.                         });
  13.                     });
  14.                 }else{
  15.                     $("#msgbox").fadeTo(200,0.1,function(){
  16.                         $(this).html('Gebruikersnaam of wachtwoord onjuist...').addClass('messageboxerror').fadeTo(900,1);
  17.                     });
  18.                 }
  19.             }
  20.         });
Add Comment
Please, Sign In to add comment