Last active
October 19, 2016 08:03
-
-
Save btk/dfef6ec3eb68d5efaf3bb776961f5cfb to your computer and use it in GitHub Desktop.
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
var data = new FormData(); | |
data.append('db', '***'); | |
data.append('pass', '****'); | |
data.append('string', 'WHERE worker_id = "'+localStorage.getItem("worker_id")+'" order by id desc Limit 10'); | |
var xhr = new XMLHttpRequest(); | |
xhr.open('POST', 'http://sunum.pikselbilisim.net/brosur/select.php', true); | |
xhr.onload = function () { | |
//console.log(this.responseText); | |
if(this.responseText){ | |
console.log(this.responseText); | |
} | |
}; | |
xhr.send(data); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment