var req = new XMLHttpRequest();
req.open('POST','FlieTest17.php',true);
req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
req.onreadystatechange = function (aEvt) {
if (req.readyState == 4) {
if(req.status == 200)
{
// тут обрабатываем ответ
}
else
dump("Error loading page\n");
}
};