Php cannot receive POST data of native ajax.

span.onclick=function(ev)
{
    var ev=ev||window.event;
    var target=ev.target||ev.srcElement;
    var url="anime.php?id=" + target.innerText;
    alert(url);
    xmlhttp = new XMLHttpRequest();
    xmlhttp.open("POST",url,true);
    xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
    xmlhttp.send();
    xmlhttp.onreadystatechange=function(){
        if (xmlhttp.readyState==4 && xmlhttp.status==200)
        {
            document.write(xmlhttp.responseText);
        }
    }
}
Mar.18,2021

did not see you send post data.
it is normal not to receive it.


data is written to send ()

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e469b6-44bb8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e469b6-44bb8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?