Skip to content

Instantly share code, notes, and snippets.

@btk
Last active October 19, 2016 08:03
Show Gist options
  • Save btk/dfef6ec3eb68d5efaf3bb776961f5cfb to your computer and use it in GitHub Desktop.
Save btk/dfef6ec3eb68d5efaf3bb776961f5cfb to your computer and use it in GitHub Desktop.
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