var name = $('#name').val();
$.ajax({
url: "/api/user.php?action=getlogin&username=name",
success: function(data) {
console.log(data);
var data = data;
if (data == '{status: 1}') {
alert('OK');
}
}
});
url: "/api/user.php?action=getlogin&username=" + name,