Javascript-форум (https://javascript.ru/forum/)
-   Общие вопросы Javascript (https://javascript.ru/forum/misc/)
-   -   Сформировать массив данных и отправить его в PHP средствами JS (https://javascript.ru/forum/misc/39868-sformirovat-massiv-dannykh-i-otpravit-ego-v-php-sredstvami-js.html)

danik.js 15.07.2013 22:29

westnord, нужно конечно. Нужно еще пару-тройку версий jQuery!

sexyQuery 16.07.2013 12:18

// data - массив
req = new XMLHttpRequest;
req.open('handler.php', 'POST');
req.onload = function() { alert(this.response); }
req.send(JSON.stringify(data))
// ======================
<?php

var_dump(file_get_contents('php://input'));

?>


Часовой пояс GMT +3, время: 18:27.