一键提交两种表格

我需要帮助....

我正在尝试使用xmlhttprequest用一个提交按钮发送多种表单。但是每次它只发送最后一个表格。

这是我的代码

for(j=0;j<collection;j++)
{   

xhr.open("POST", "showQuestionnaire.php",true);
xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xhr.send(document.getElementById("submitAnswers"+j).submit());
}

我试图在同一页面上使用.submit()提交表单,并使用$ _GET获取数据。但是每次它都会跳过索引0。