The question is: how to get the value of data that the php server js sends to the script in text format (which would then make a check, for example if(data == "true") ).
Js:
$.post('check.php', {'login':login}, function(data) { if(data == "true"){ //code }else if(data == "false"){ //code } }); Php:
<?php $login = $_POST['login']; echo("$login"); ?>
"true"/"false") - Ivan Repin