Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery.ajax({
- url : 'includes/login.inc.php',
- type : 'POST',
- data : 'username=' + $('#user_name').val() + '&password=' + $('#password').val(),
- success : function(response){
- if(response == 1){
- $("#login_form").fadeOut("normal");
- $("#msgbox").fadeTo(200,0.1,function(){
- $(this).html('Bezig met inloggen...').addClass('messageboxok').fadeTo(900,1,
- function(){
- window.setTimeout(document.location='logged_in.php', 1000);
- });
- });
- }else{
- $("#msgbox").fadeTo(200,0.1,function(){
- $(this).html('Gebruikersnaam of wachtwoord onjuist...').addClass('messageboxerror').fadeTo(900,1);
- });
- }
- }
- });
Add Comment
Please, Sign In to add comment