Created
September 6, 2016 05:13
-
-
Save VSeryoga/e1de4eca2af843075dc8a571748fadce to your computer and use it in GitHub Desktop.
ajax jquery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajax({ | |
method: "POST", | |
url: "/ajax/autoriz.php", | |
data: { | |
p: phone, | |
pass: pass | |
} | |
}) | |
.done(function(msg) { | |
if (msg == 1) { | |
window.location.replace(""); | |
} else { | |
alert("Неправильный логин или пароль"); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment