I have some code:
<?php
$findItem = null;
if(!empty(isset($_POST["data"])))
{
$findItem = 1;
}
if($findItem != null){
echo '<td>Find YOU</td>';
}
?>
Echo doesnt work at all. I don`t know why. isset triggered by js:
<script>
function init() {
var data = new FormData();
data.append("data" , 'init');
var xhr = (window.XMLHttpRequest) ? new XMLHttpRequest() : new activeXObject("Microsoft.XMLHTTP");
xhr.open( 'post', 'index.php', true );
xhr.send(data);
}
</script>
<script src="track.min.js" onload="init()">
Whats problem?